[Security] Bump json5 and @vue/cli-service in /frontend
Bumps json5 to 2.2.2 and updates ancestor dependency @vue/cli-service. These dependencies need to be updated together.
Updates json5
from 1.0.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
Release notes
Sourced from json5's releases.
v2.2.2
- Fix: Properties with the name
__proto__
are added to objects and arrays. (#199) This also fixes a prototype pollution vulnerability reported by Jonathan Gregson! (#295).v2.2.1
- Fix: Removed dependence on minimist to patch CVE-2021-44906. (#266)
v2.2.0
- New: Accurate and documented TypeScript declarations are now included. There is no need to install
@types/json5
. (#236, #244)code, diff]
v2.1.3 [v2.1.2
- Fix: Bump
minimist
tov1.2.5
. (#222)v2.1.1
- New:
package.json
andpackage.json5
include amodule
property so bundlers like webpack, rollup and parcel can take advantage of the ES Module build. (#208)- Fix:
stringify
outputs\0
as\\x00
when followed by a digit. (#210)- Fix: Spelling mistakes have been fixed. (#196)
v2.1.0
- New: The
index.mjs
andindex.min.mjs
browser builds in thedist
directory support ES6 modules. (#187)v2.0.1
- Fix: The browser builds in the
dist
directory support ES5. (#182)v2.0.0
Major: JSON5 officially supports Node.js v6 and later. Support for Node.js v4 has been dropped. Since Node.js v6 supports ES5 features, the code has been rewritten in native ES5, and the dependence on Babel has been eliminated.
New: Support for Unicode 10 has been added.
New: The test framework has been migrated from Mocha to Tap.
New: The browser build at
dist/index.js
is no longer minified by default. A minified version is available atdist/index.min.js
. (#181)Fix: The warning has been made clearer when line and paragraph separators are used in strings.
Fix:
package.json5
has been restored, and it is automatically generated and
... (truncated)
Changelog
Sourced from json5's changelog.
code, diff]
v2.2.2 [
- Fix: Properties with the name
__proto__
are added to objects and arrays. (#199) This also fixes a prototype pollution vulnerability reported by Jonathan Gregson! (#295).code, diff]
v2.2.1 [
- Fix: Removed dependence on minimist to patch CVE-2021-44906. (#266)
code, diff]
v2.2.0 [
- New: Accurate and documented TypeScript declarations are now included. There is no need to install
@types/json5
. (#236, #244)code, diff]
v2.1.3 [code, diff]
v2.1.2 [
- Fix: Bump
minimist
tov1.2.5
. (#222)code, diff]
v2.1.1 [
... (truncated)
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