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

question: Is everything alright with class-validator vulnerabilities checks? #1342

Closed
talesmgodois opened this issue Oct 12, 2021 · 15 comments
Closed
Labels
type: question Questions about the usage of the library.

Comments

@talesmgodois
Copy link

Hi everyone, Today a critical vulnerability has shown on our CI/CD

image

SO I entered the link provided, GHSA-fj58-h2fr-3pp2, to me and saw the following:
image

My question is, should I get this error when I am using version 0.13.1? Shouldn't be only for version <= 0.10.2??

Idk how these vulnerabilities are marked, but, is there any possibility that this was marked wrong to use <=10.2 instead of <=0.10.2 as it should?

@talesmgodois talesmgodois added the type: question Questions about the usage of the library. label Oct 12, 2021
@talesmgodois talesmgodois changed the title question: <your-title-goes-here> question: Is everything alright with class-validator vulnerabilities checks? Oct 12, 2021
@dantehemerson
Copy link
Contributor

Same here, I'm using [email protected] and I'm getting the next critical serverity vulnerability on Github
137038567-3cc68a67-1679-4254-963f-549efbe01985

@tofikabdullayev
Copy link

Same

@szygendab
Copy link

Same error here even if using v 0.13.1

@iordanivanov
Copy link

Same here

@StefanZivkovic
Copy link

In order to unblock us we removed npm audit command from our CI builds. I guess this is just a temporary.

@talesmgodois
Copy link
Author

Yeah, disabling it is the first thing to do in this situation,

I found this library that solves partially of what we need:
https://www.npmjs.com/package/better-npm-audit

@SDemonUA
Copy link

@talesmgodois there is wonderful https://www.npmjs.com/package/audit-ci it can be configured with whitelists of packages, issues...

@nternouski
Copy link

Same here with the last version (0.13.1)

@nandastone
Copy link

The advisory contains a typo:

CleanShot 2021-10-15 at 11 43 02

If using https://www.npmjs.com/package/audit-ci, you can upgrade the package then whitelist it via the allowlist option.

@joebowbeer
Copy link

@joebowbeer
Copy link

The entry has been updated to 0.13.1 but class-validator is still missing a fix:

GHSA-fj58-h2fr-3pp2 has been updated so that it now has a vulnerable version range of <= 0.13.1. 0.13.1 is the latest version of the package. Given a fix for the issue has not yet been made I believe this is the correct version range. If the developer does release a fix in 0.14.0 or a different version we will update the advisory again to include that fix version.

I also lowered the severity to moderate given that there is a workaround, and some debate in the issue about how serious the vulnerability is.

To explain how the data was published with a mistake, there is a manual process involved in going from a CVE to a GHSA and a human error was made in that process. We do have plans to improve the validations to check against actual versions. This case will be useful to illustrate the importance of that change.

We also have a feature that should launch in the next few months where a community member can suggest edits to GHSAs directly from the advisory page. That should make it easier to get mistakes like these fixed.

@talesmgodois
Copy link
Author

Nice, @joebowbeer DO you have the url source of this quote?

@joebowbeer
Copy link

The quote is from private correspondence with Rob Schultheis.

He wrote:

If you see any other problems with this advisory or others, please don't hesitate to email [email protected].

@talesmgodois
Copy link
Author

talesmgodois commented Oct 15, 2021

Oh ok, gotcha. I thought it would be in some github or other public community.

anyway, the purpose of the issue was the mislabel and confusion, thanks for your help folks.
Closing it now, Thanks everyone for your help o/

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: question Questions about the usage of the library.
Development

No branches or pull requests

10 participants