[Security] Bump json5 and @vue/cli-service in /webapp
Bumps json5 to 2.2.2 and updates ancestor dependency @vue/cli-service. These dependencies need to be updated together.
Updates json5
from 2.2.1 to 2.2.2 This update includes a security fix.
Vulnerabilities fixed
Prototype Pollution in JSON5 via Parse Method The
parse
method of the JSON5 library before and including version2.2.1
does not restrict parsing of keys named__proto__
, allowing specially crafted strings to pollute the prototype of the resulting object.This vulnerability pollutes the prototype of the object returned by
JSON5.parse
and not the global Object prototype, which is the commonly understood definition of Prototype Pollution. However, polluting the prototype of a single object can have significant security impact for an application if the object is later used in trusted operations.Impact
This vulnerability could allow an attacker to set arbitrary and unexpected keys on the object returned from
JSON5.parse
. The actual impact will depend on how applications utilize the returned object and how they filter unwanted keys, but could include denial of service, cross-site scripting, elevation of privilege, and in extreme cases, remote code execution.Mitigation
This vulnerability is patched in json v2.2.2 and later.
Details
Suppose a developer wants to allow users and admins to perform some risky operation, but they want to restrict what non-admins can do. To accomplish this, they accept a JSON blob from the user, parse it using
JSON5.parse
, confirm that the provided data does not set some sensitive keys, and then performs the risky operation using the validated data:const JSON5 = require('json5'); const doSomethingDangerous = (props) => { if (props.isAdmin) { console.log('Doing dangerous thing as admin.'); } else { </tr></table>
... (truncated)
Patched versions: 2.2.2 Affected versions: < 2.2.2
Commits
-
14f8cb1
2.2.2 -
10cc7ca
docs: update CHANGELOG for v2.2.2 -
7774c10
fix: add proto to objects and arrays -
edde30a
Readme: slight tweak to intro -
97286f8
Improve example in readme -
d720b4f
Improve readme (e.g. explain JSON5 better!) (#291) -
910ce25
docs: fix spelling of Aseem -
2aab4dd
test: require tap as t in cli tests -
6d42686
test: remove mocha syntax from tests -
4798b9d
docs: update installation and usage for modules - Additional commits viewable in compare view
Updates @vue/cli-service
from 5.0.8 to 5.0.8
Commits
- See full diff in compare view
Dependabot commands
You can trigger Dependabot actions by commenting on this MR
-
$dependabot rebase
will rebase this MR -
$dependabot recreate
will recreate this MR rewriting all the manual changes and resolving conflicts