react@0.5.0 vulnerabilities

React is a JavaScript library for building user interfaces.

  • latest version

    19.0.0

  • latest non vulnerable version

  • first published

    13 years ago

  • latest version published

    2 months ago

  • licenses detected

    • >=0.0.0-375616788 <0.8.0; >=15.6.2 <16.0.0-alpha; >=16.0.0
  • Direct Vulnerabilities

    Known vulnerabilities in the react package. This does not include vulnerabilities belonging to this package’s dependencies.

    How to fix?

    Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.

    Fix for free
    VulnerabilityVulnerable Version
    • H
    Cross-site Scripting (XSS)

    react is React is a JavaScript library for building user interfaces..

    Affected versions of the package are vulnerable to Cross-site Scripting (XSS) due to the createElement method not validating the object, allowing a malicious user to pass a specially crafted JSON object and renders them as an element.

    How to fix Cross-site Scripting (XSS)?

    Upgrade react to version 0.14.0 or higher.

    >=0.0.1 <0.14.0
    • M
    Cross-site Scripting (XSS)

    react is React is a JavaScript library for building user interfaces..

    Affected versions of the package contain Cross-site Scripting (XSS) vulnerability due to unescaped text before inserted into the DOM.

    A Cross-site Scripting (XSS) vulnerability can arise when using user data as a key. Typically "safe" data is used for a key, for example, an id from your database, or a unique hash. However there are cases where it may be reasonable to use user generated content. A carefully crafted piece of content could result in arbitrary code execution.

    How to fix Cross-site Scripting (XSS)?

    This vulnerability only affects v0.5.x and v0.4.x. Versions in the 0.3.x family are unaffected. Upgrade react to version 0.5.2\0.4.2 or higher.

    >=0.5.0 <0.5.2>=0.4.0 <0.4.2