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

Backport of v1.2.6 fixes to v0.2.x? #11

Closed
gorner opened this issue Oct 19, 2022 · 11 comments
Closed

Backport of v1.2.6 fixes to v0.2.x? #11

gorner opened this issue Oct 19, 2022 · 11 comments

Comments

@gorner
Copy link

gorner commented Oct 19, 2022

Thanks to the new maintainers for taking over this project. I see a new version of the v0.2.x line has been published even though it still seems to be covered by CVE-2021-44906.

Is there any possibility of the fix from v1.2.6 being backported, or is it necessary at all? I ask because the maintainers of one of the other packages we use have thus far not responded to suggestions to update and a patch update to the v0.2.x line would obviate the need for that.

And yes, I'm aware we can also use yarn resolutions, NPM overrides, etc. and the risk is probably fairly minimal in our use case – but I assume there's a reason the v0.2.x line is being maintained.

@ljharb
Copy link
Member

ljharb commented Oct 19, 2022

Yes, I’ll do a few backports.

@shadowspawn
Copy link
Collaborator

shadowspawn commented Feb 26, 2023

The npm audit info seems to be one behind anyway, but checking against Synk.

Running manual tests against the proof of concept attacks in Sync:

A successful mitigation against pollution prints undefined.

% npm i --silent minimist@0.2.0
% node poc1
value0
% node poc2
value1
% node poc3
bar

% npm i --silent minimist@0.2.1
% node poc1                    
undefined
% node poc2                    
undefined
% node poc3                    
bar

% npm i --silent minimist@0.2.4
% node poc1                    
undefined
% node poc2                    
undefined
% node poc3                    
undefined

@ljharb
Copy link
Member

ljharb commented Feb 26, 2023

Which commits/PRs are still unbackported?

@shadowspawn
Copy link
Collaborator

I think we are good to go ahead with requesting update to vulnerability information (not that I have any idea of the process!).

minimist@0.2.4 includes the new backport:

@ljharb
Copy link
Member

ljharb commented Feb 26, 2023

Awesome. I'm not sure how to go about that. If there's specific things (github and/or snyk) then with the links to those, I can pursue updating them to note that v0.2.4+ isn't vulnerable.

@shadowspawn
Copy link
Collaborator

The current audit link references advisories for the first vulnerability:

% npm audit
# npm audit report

minimist  <1.2.6
Severity: critical
Prototype Pollution in minimist - https://github.com/advisories/GHSA-xvch-5gv4-984h

The Synk links for both vulnerabilities are in #11 (comment)

@ljharb
Copy link
Member

ljharb commented Feb 26, 2023

https://security.snyk.io/vuln/SNYK-JS-MINIMIST-559764 is already fixed in v0.2.1+. I've pinged someone at Snyk for https://security.snyk.io/vuln/SNYK-JS-MINIMIST-2429795.

Filed github/advisory-database#1725 for the npm audit one.

@shadowspawn
Copy link
Collaborator

For interest of gentle readers, the unit tests for prototype pollution on the v0.2.x branch are: https://github.com/minimistjs/minimist/blob/v0.2.x/test/proto.js

@shadowspawn
Copy link
Collaborator

npm audit now knows that 0.2.4 is ok, thanks to @ljharb for filing advisory database update:

11 % npm ls minimist
11@1.0.0 /Users/john/Documents/Sandpits/minimist/issues/11
└── minimist@0.2.4

11 % npm audit
found 0 vulnerabilities

@shadowspawn
Copy link
Collaborator

I have submitted updates to the CVE entries themselves via the CVE numbering authority for the issues: https://cveform.mitre.org/

@ljharb
Copy link
Member

ljharb commented Mar 2, 2024

I think this is resolved; please file a new issue if there's any remaining vulnerabilities in a minor line.

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

No branches or pull requests

3 participants