CVE-2019-18413: XSS

Published Oct 24, 2019
·
Updated

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.

Other sources

TypeStack class-validator could allow a remote attacker to bypass security restrictions, caused by a flaw in the class-validator function. By sending a specially-crafted input, an attacker could exploit this vulnerability to bypass the class-validator to perform SQL Injection or XSS attacks.

IBM

Affected Software

1 affected component
Typestack Class-validator Project Typestack Class-validator=0.10.2

Event History

Oct 24, 2019
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionSeverity
Feb 18, 2022
Data Sourced
via IBM·12:00 AM
DescriptionSeverityAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2019-18413?

The severity of CVE-2019-18413 is critical with a severity value of 9.8.

2

What is TypeStack class-validator?

TypeStack class-validator is a library used for input validation in TypeScript applications.

3

What is the vulnerability in TypeStack class-validator 0.10.2?

The vulnerability in TypeStack class-validator 0.10.2 allows a remote attacker to bypass security restrictions by overwriting certain internal attributes.

4

How can the bypass of input validation be prevented in TypeStack class-validator 0.10.2?

To reduce the risk of the bypass, the optional forbidUnknownValues parameter can be used during validation.

5

Where can I find more information about CVE-2019-18413?

More information about CVE-2019-18413 can be found on the following references: [link1](https://exchange.xforce.ibmcloud.com/vulnerabilities/170114), [link2](https://www.ibm.com/support/pages/node/6557106), [link3](https://github.com/typestack/class-validator#passing-options).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203