{"cve":"CVE-2019-18413","nvd":{"published":"2019-10-24T18:15:11.497","modified":"2026-06-17T02:24:59.297","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8},"cwes":["CWE-79","CWE-89"],"references":["https://github.com/typestack/class-validator#passing-options","https://github.com/typestack/class-validator/issues/1422#issuecomment-1344635415","https://github.com/typestack/class-validator/issues/438","https://github.com/typestack/class-validator/issues/438#issuecomment-964728471","https://github.com/typestack/class-validator#passing-options"],"products":["typestack_class-validator_project:typestack_class-validator"],"source":"nvd","synced_at":"2026-10-19T20:59:10.855360465+00:00"},"epss":{"cve":"CVE-2019-18413","score":0.01987,"percentile":0.80617,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-fj58-h2fr-3pp2","url":"https://osv.dev/vulnerability/GHSA-fj58-h2fr-3pp2","summary":"SQL Injection and Cross-site Scripting in class-validator","modified":"2023-11-08T04:01:25.903566Z","packages":[{"ecosystem":"npm","name":"class-validator","purl":"pkg:npm/class-validator","ranges":["<0.14.0"],"fixed":["0.14.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}