CWE
79 89 20
Advisory Published
Updated

CVE-2019-18413: XSS

First published: Thu 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.

Credit: cve@mitre.org

Affected SoftwareAffected VersionHow to fix
Typestack Class-validator Project Typestack Class-validator=0.10.2

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Parent vulnerabilities

(Appears in the following advisories)

Frequently Asked Questions

  • What is the severity of CVE-2019-18413?

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

  • What is TypeStack class-validator?

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

  • 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.

  • 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.

  • 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.
© 2024 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203