Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(vulnerability): upgrade json5 version from 2.2.1 to 2.2.2 #713

Merged
merged 2 commits into from
Jan 17, 2023

Conversation

veekays
Copy link
Contributor

@veekays veekays commented Jan 3, 2023

json5 dependency is vulnerable in the current version which is 2.2.1, this PR contains the fix. The vulnerability is resolved in version 2.2.2.

This PR resolves the issue #712

@dragan-novakovic
Copy link

Maybe it will be easier if the version is 2.2.x ?

@jdmarshall
Copy link
Contributor

I don't agree that the PR that was filed in JSON5 to address this CVE actually addresses the problem. Can someone take another peek at their PR?

https://github.com/json5/json5/pull/296/files

This seems to be asserting the bug, not fixing it:

https://github.com/json5/json5/pull/296/files#diff-b266c4cbb2cefa3caf90e138f935e3cf489c6655e84c1ca9d0425bb0d9af9cc6R51-R55

Copy link
Contributor

@jdmarshall jdmarshall left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would like to see a test that asserts this is fixed. Because reading their commit history, I don't think it is.

@mboaventura
Copy link

Hi all,
According to the nist this vuln was solved in the 2.2.2 version.

@neverbot
Copy link

Reading:

json5/json5#296

it seems the problem is solved (in json __proto__ is just another name for a property, so it should convert to a "normal" property when parsed to a javascript object, not having special treatment)

I'm curious... why are we thinking this PR should not be accepted?

@dragan-novakovic
Copy link

it has been 2 weeks, maybe bump it to 2.2.3 now ?

@markstos markstos merged commit 4c1c619 into node-config:master Jan 17, 2023
@markstos
Copy link
Collaborator

Published as v3.3.9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants