class-validator@0.9.0 vulnerabilities

Decorator-based property validation for classes.

Direct Vulnerabilities

Known vulnerabilities in the class-validator package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable Version
  • L
Improper Input Validation

class-validator is a decorator-based property validation for classes.

Affected versions of this package are vulnerable to Improper Input Validation via bypassing the input validation in validate(), as certain internal attributes can be overwritten via a conflicting name.

NOTE: There is an optional forbidUnknownValues parameter that can be used to reduce the risk of this bypass.

How to fix Improper Input Validation?

Upgrade class-validator to version 0.14.0 or higher.

<0.14.0