← Back to CVE Explorer

CVE-2025-58754

Full vulnerability record from the local CVENow database.

Description

Axios is a promise based HTTP client for the browser and Node.js. When Axios starting in version 0.28.0 and prior to versions 0.30.2 and 1.12.0 runs on Node.js and is given a URL with the `data:` scheme, it does not perform HTTP. Instead, its Node http adapter decodes the entire payload into memory (`Buffer`/`Blob`) and returns a synthetic 200 response. This path ignores `maxContentLength` / `maxBodyLength` (which only protect HTTP responses), so an attacker can supply a very large `data:` URI and cause the process to allocate unbounded memory and crash (DoS), even if the caller requested `responseType: 'stream'`. Versions 0.30.2 and 1.12.0 contain a patch for the issue.

Severity
HIGH
CVSS score
7.5 (v3.1)
Vulnerability status
Modified
Source identifier
Published
2025-09-12 02:15:46.873000
Last modified
2026-10-19 17:10:00.173000
View original CVE JSON
{
  "id": "CVE-2025-58754",
  "sourceIdentifier": "[email protected]",
  "published": "2025-09-12T02:15:46.873",
  "lastModified": "2026-10-19T17:10:00.173",
  "vulnStatus": "Modified",
  "cveTags": [],
  "descriptions": [
    {
      "lang": "en",
      "value": "Axios is a promise based HTTP client for the browser and Node.js. When Axios starting in version 0.28.0 and prior to versions 0.30.2 and 1.12.0 runs on Node.js and is given a URL with the `data:` scheme, it does not perform HTTP. Instead, its Node http adapter decodes the entire payload into memory (`Buffer`/`Blob`) and returns a synthetic 200 response. This path ignores `maxContentLength` / `maxBodyLength` (which only protect HTTP responses), so an attacker can supply a very large `data:` URI and cause the process to allocate unbounded memory and crash (DoS), even if the caller requested `responseType: 'stream'`. Versions 0.30.2 and 1.12.0 contain a patch for the issue."
    },
    {
      "lang": "es",
      "value": "Axios es un cliente HTTP basado en promesas para el navegador y Node.js. Cuando Axios, a partir de la versión 0.28.0 y anterior a las versiones 0.30.2 y 1.12.0, se ejecuta en Node.js y se le proporciona una URL con el esquema 'data:', no realiza HTTP. En su lugar, su adaptador http de Node decodifica la carga útil completa en memoria ('Buffer'/'Blob') y devuelve una respuesta sintética 200. Esta ruta ignora 'maxContentLength' / 'maxBodyLength' (que solo protegen las respuestas HTTP), por lo que un atacante puede proporcionar una URI 'data:' muy grande y hacer que el proceso asigne memoria ilimitada y colapse (DoS), incluso si el llamador solicitó 'responseType: 'stream''. Las versiones 0.30.2 y 1.12.0 contienen un parche para el problema."
    }
  ],
  "affected": [
    {
      "source": "[email protected]",
      "affectedData": [
        {
          "vendor": "axios",
          "product": "axios",
          "versions": [
            {
              "version": ">= 1.0.0, < 1.12.0",
              "status": "affected"
            },
            {
              "version": ">= 0.28.0, < 0.30.2",
              "status": "affected"
            }
          ]
        }
      ]
    }
  ],
  "metrics": {
    "cvssMetricV31": [
      {
        "source": "[email protected]",
        "type": "Secondary",
        "cvssData": {
          "version": "3.1",
          "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
          "baseScore": 7.5,
          "baseSeverity": "HIGH",
          "attackVector": "NETWORK",
          "attackComplexity": "LOW",
          "privilegesRequired": "NONE",
          "userInteraction": "NONE",
          "scope": "UNCHANGED",
          "confidentialityImpact": "NONE",
          "integrityImpact": "NONE",
          "availabilityImpact": "HIGH"
        },
        "exploitabilityScore": 3.9,
        "impactScore": 3.6
      }
    ],
    "ssvcV203": [
      {
        "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
        "ssvcData": {
          "timestamp": "2025-09-12T13:08:38.895896Z",
          "id": "CVE-2025-58754",
          "options": [
            {
              "exploitation": "poc"
            },
            {
              "automatable": "yes"
            },
            {
              "technicalImpact": "partial"
            }
          ],
          "role": "CISA Coordinator",
          "version": "2.0.3"
        }
      }
    ]
  },
  "weaknesses": [
    {
      "source": "[email protected]",
      "type": "Secondary",
      "description": [
        {
          "lang": "en",
          "value": "CWE-770"
        }
      ]
    }
  ],
  "configurations": [
    {
      "nodes": [
        {
          "operator": "OR",
          "negate": false,
          "cpeMatch": [
            {
              "vulnerable": true,
              "criteria": "cpe:2.3:a:axios:axios:*:*:*:*:*:node.js:*:*",
              "versionEndExcluding": "0.30.2",
              "matchCriteriaId": "42CE8592-2921-474D-9A2A-B0ABFEDB2304"
            },
            {
              "vulnerable": true,
              "criteria": "cpe:2.3:a:axios:axios:*:*:*:*:*:node.js:*:*",
              "versionStartIncluding": "1.0.0",
              "versionEndExcluding": "1.12.0",
              "matchCriteriaId": "037955F5-7C7D-4C3F-886B-52B009B97300"
            }
          ]
        }
      ]
    }
  ],
  "references": [
    {
      "url": "https://github.com/axios/axios/commit/945435fc51467303768202250debb8d4ae892593",
      "source": "[email protected]",
      "tags": [
        "Patch"
      ]
    },
    {
      "url": "https://github.com/axios/axios/commit/a1b1d3f073a988601583a604f5f9f5d05a3d0b67",
      "source": "[email protected]",
      "tags": [
        "Patch"
      ]
    },
    {
      "url": "https://github.com/axios/axios/commit/c30252f685e8f4326722de84923fcbc8cf557f06",
      "source": "[email protected]"
    },
    {
      "url": "https://github.com/axios/axios/pull/7011",
      "source": "[email protected]",
      "tags": [
        "Issue Tracking",
        "Patch"
      ]
    },
    {
      "url": "https://github.com/axios/axios/pull/7034",
      "source": "[email protected]",
      "tags": [
        "Issue Tracking"
      ]
    },
    {
      "url": "https://github.com/axios/axios/releases/tag/v0.30.2",
      "source": "[email protected]",
      "tags": [
        "Release Notes"
      ]
    },
    {
      "url": "https://github.com/axios/axios/releases/tag/v1.12.0",
      "source": "[email protected]",
      "tags": [
        "Release Notes"
      ]
    },
    {
      "url": "https://github.com/axios/axios/security/advisories/GHSA-4hjh-wcwx-xvwj",
      "source": "[email protected]",
      "tags": [
        "Exploit",
        "Vendor Advisory"
      ]
    },
    {
      "url": "https://github.com/axios/axios/security/advisories/GHSA-4hjh-wcwx-xvwj",
      "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
      "tags": [
        "Exploit",
        "Vendor Advisory"
      ]
    }
  ]
}