-
Notifications
You must be signed in to change notification settings - Fork 807
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: critical vulnerability reported by whitesource #1389
Comments
This issue was raised last month in #1342. The Github issue was initially marked critical and then downgraded to moderate severity. I don't use Whitesource so I can't comment much on it, but I'm not sure why this same vuln would be classified as high severity there while Github downgraded the severity level. In practical terms what our team did to ensure that usage of class-validator was safe was to follow the instructions - we used the And FYI - this library seems to be in a limbo state in regards to maintenance, I'm seeing no real activity for the past little while. The Nestjs team is so worried about it that they have apparently forked it and are actively maintaining as of the past few weeks (apparently Nestjs relies on this lib and the related class-transformers heavily). I'm not necessarily suggesting anybody jump over to the Nestjs fork but it might be worth looking into. https://www.npmjs.com/package/@nestjs/class-validator |
For anyone interested in resolving this issue, change to the recently forked (and patched) @nestjs/class-validator package.
Update your import references too, and you should be good to go 👍 |
If you are considering using the @nestjs/class-validator fork and you are a Nestjs user: be aware that if you are using class-validator simply because it is a nestjs peerDependency (and you need to use ValidationPipe or something), simply replacing class-validator with @nestjs/class-validator won't work by itself. See nestjs/nest#8562 |
@IanMoroney @shaunek I am still getting this vulnerability even after updating @nestjs/class-validator to 0.13.3 like this |
I think you should rather ask about this in https://github.com/nestjs/class-validator |
this could also help @array-addu : |
Please see #1422 (comment) for details and tracking of the issue. In short, the provided POC doesn't result in a bypass since at least 2021 October 22. (So for almost a year) but I had trouble marking the vulnerability as patched with the vendors.
As far as I can tell the package hosted on NestJS is not patched. You don't get the vulnerability alert because it's published under a new name but the code is the same. I am closing this issue as a duplicate of the above-linked one. |
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. |
Description
Whitesource scanning tool is reporting a high vulnerability issue on class-validator
here is the description from whitesource:
The text was updated successfully, but these errors were encountered: