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

bump 5.0.0-security.0 -> 5.0.1 #350

Closed
wants to merge 1 commit into from
Closed

Conversation

chharvey
Copy link

@chharvey chharvey commented Feb 6, 2021

Using proper semver numbers. 5.0.0-security.0 is technically less than 5.0.0. This will pacify security errors requiring versions > 5.0.0.

GHSA-p9pc-299p-vxgp
low severity
Vulnerable versions: <= 5.0.0
Patched version: 5.0.0-security.0
Affected versions of yargs-parser are vulnerable to prototype pollution. Arguments are not properly sanitized, allowing an attacker to modify the prototype of Object, causing the addition or modification of an existing property that will exist on all objects.
Parsing the argument --foo.__proto__.bar baz' adds a bar property with value baz to all objects. This is only exploitable if attackers have control over the arguments being passed to yargs-parser.
Recommendation
Upgrade to versions 13.1.2, 15.0.1, 18.1.1 or later.
low severity
Vulnerable versions: <= 5.0.0
Patched version: 5.0.0-security.0

Affected versions of yargs-parser are vulnerable to prototype pollution. Arguments are not properly sanitized, allowing an attacker to modify the prototype of Object, causing the addition or modification of an existing property that will exist on all objects.
Parsing the argument --foo.__proto__.bar baz' adds a bar property with value baz to all objects. This is only exploitable if attackers have control over the arguments being passed to yargs-parser.

Recommendation

Upgrade to versions 13.1.2, 15.0.1, 18.1.1 or later.

Dependabot cannot update yargs-parser to a non-vulnerable version
The latest possible version that can be installed is 5.0.0-security.0 because of the following conflicting dependency:
gulp@4.0.2 requires yargs-parser@5.0.0-security.0 via a transitive dependency on yargs@7.1.1
The earliest fixed version is 13.1.2.
Dependabot cannot update yargs-parser to a non-vulnerable version

The latest possible version that can be installed is 5.0.0-security.0 because of the following conflicting dependency:

gulp@4.0.2 requires yargs-parser@5.0.0-security.0 via a transitive dependency on yargs@7.1.1

The earliest fixed version is 13.1.2.

Using proper semver numbers. `5.0.0-security.0` is technically less than `5.0.0`. This will pacify security errors requiring versions `> 5.0.0`.
@chharvey
Copy link
Author

ping @bcoe

@rarkins
Copy link

rarkins commented Mar 2, 2021

Yes, ideally 5.0.1 would be released and the CVE updated. 5.0.0-security.0 is (a) an unstable version according to semver/npm where it's published, and (b) sorts less than 5.0.0. So if <=5.0.0 is vulnerable then that includes 5.0.0-security.0 and if the recommendation is >=5.0.0-security.0 then that includes 5.0.0 (which is actually vulnerable).

@bcoe
Copy link
Member

bcoe commented Mar 8, 2021

I will make an effort to do this soon, patches to old branches are not automatically released, so merging this PR would not have an affect.

I will need to manually release a new version of 5.0.1.

@rarkins
Copy link

rarkins commented Mar 8, 2021

As some advice from someone who's done it, be careful you don't accidentally tag 5.0.1 as latest when you manually publish. The next step will be updating the security advisory to refer to 5.0.1. Do you know if that's something you can change?

@bcoe
Copy link
Member

bcoe commented Mar 10, 2021

Closing in favor of #363

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

3 participants