All CVEs / Typestack Class-validator Project
CVE-2019-18413Typestack Class-validator Project Typestack Class-validator
Critical 9.8 No auth needed
Follow: this CVE · Typestack Class-validator Project · Typestack Class-validator Project Typestack Class-validator We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.1
- 9.8
- EPSS
- 2.0% probability of exploitation in 30 days · percentile 81
- Auth required
- No
- Published
- Oct 24, 2019
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
In TypeStack class-validator 0.10.2, validate() input validation can be bypassed because certain internal attributes can be overwritten via a conflicting name. Even though there is an optional forbidUnknownValues parameter that can be used to reduce the risk of this bypass, this option is not documented and thus most developers configure input validation in the vulnerable default manner. With this vulnerability, attackers can launch SQL Injection or XSS attacks by injecting arbitrary malicious input. NOTE: a software maintainer agrees with the "is not documented" finding but suggests that much of the responsibility for the risk lies in a different product.
What to do
- Apply the vendor's security update for Typestack Class-validator.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | class-validator |
< 0.14.0 |
0.14.0 |
npm install class-validator@0.14.0 |
Per OSV / GitHub Advisories (GHSA-fj58-h2fr-3pp2). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| typestack_class-validator_project | typestack_class-validator | 0.10.2 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Third Party Advisory
- github.com Issue Tracking Release Notes Third Party Advisory
- github.com Exploit Issue Tracking Third Party Advisory
- github.com Exploit Issue Tracking Third Party Advisory