axios@1.7.1 vulnerabilities

Promise based HTTP client for the browser and node.js

  • latest version

    1.7.9

  • latest non vulnerable version

  • first published

    10 years ago

  • latest version published

    17 days ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the axios 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
    • M
    Cross-site Scripting (XSS)

    axios is a promise-based HTTP client for the browser and Node.js.

    Affected versions of this package are vulnerable to Cross-site Scripting (XSS) via setAttribute('href' href) in /axios/dist/axios.js due to improper input sanitization.

    How to fix Cross-site Scripting (XSS)?

    Upgrade axios to version 1.7.8 or higher.

    <1.7.8
    • H
    Server-side Request Forgery (SSRF)

    axios is a promise-based HTTP client for the browser and Node.js.

    Affected versions of this package are vulnerable to Server-side Request Forgery (SSRF) through unexpected behavior where requests for path-relative URLs get processed as protocol-relative URLs. An attacker can manipulate the server to make unauthorized requests by exploiting this behavior.

    How to fix Server-side Request Forgery (SSRF)?

    Upgrade axios to version 1.7.4 or higher.

    >=1.3.2 <1.7.4