CVEvulnerability
CVE-2019-18413
9.8 CRITICAL
Official page ↗
- Status
- Modified
- Published
- 2019-10-24
- Last modified
- 2026-06-17
- Assigner
- [email protected]
- CVSS 3.1 ([email protected])
- 3.7 LOW — CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
- CVSS 3.1 ([email protected])
- 9.8 CRITICAL — CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- CVSS 2.0 ([email protected])
- 7.5 HIGH — AV:N/AC:L/Au:N/C:P/I:P/A:P
- Weaknesses
- CWE-79, CWE-89
Description
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.
Affected configurations
• typestack class-validator project typestack class-validator 0.10.2
Related
References
- https://github.com/typestack/class-validator#passing-options Third Party Advisory
- https://github.com/typestack/class-validator/issues/1422#issuecomment-1344635415 Issue Tracking, Release Notes, Third Party Advisory
- https://github.com/typestack/class-validator/issues/438 Exploit, Issue Tracking, Third Party Advisory
- https://github.com/typestack/class-validator/issues/438#issuecomment-964728471 Exploit, Issue Tracking, Third Party Advisory
- https://github.com/typestack/class-validator#passing-options Third Party Advisory
- https://github.com/typestack/class-validator/issues/1422#issuecomment-1344635415 Issue Tracking, Release Notes, Third Party Advisory
- https://github.com/typestack/class-validator/issues/438 Exploit, Issue Tracking, Third Party Advisory
- https://github.com/typestack/class-validator/issues/438#issuecomment-964728471 Exploit, Issue Tracking, Third Party Advisory