axios@0.4.2 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
    • M
    Regular Expression Denial of Service (ReDoS)

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

    Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS). An attacker can deplete system resources by providing a manipulated string as input to the format method, causing the regular expression to exhibit a time complexity of O(n^2). This makes the server to become unable to provide normal service due to the excessive cost and time wasted in processing vulnerable regular expressions.

    How to fix Regular Expression Denial of Service (ReDoS)?

    Upgrade axios to version 0.29.0, 1.6.3 or higher.

    <0.29.0>=1.0.0 <1.6.3
    • H
    Regular Expression Denial of Service (ReDoS)

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

    Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) via the trim function.

    How to fix Regular Expression Denial of Service (ReDoS)?

    Upgrade axios to version 0.21.3 or higher.

    <0.21.3
    • M
    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). An attacker is able to bypass a proxy by providing a URL that responds with a redirect to a restricted host or IP address.

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

    Upgrade axios to version 0.21.1 or higher.

    <0.21.1
    • M
    Denial of Service (DoS)

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

    Affected versions of this package are vulnerable to Denial of Service (DoS) due to content continuing to be accepted from requests after maxContentLength is exceeded.

    How to fix Denial of Service (DoS)?

    Upgrade axios to version 0.18.1 or higher.

    <0.18.1