{"answers":{"affected":"4 open source packages ship an affected version, including axios. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-42040 exists.","fix":"Upgrade axios to a fixed version for your release line: 0.31.1 or 1.15.1.","what":"CVE-2026-42040 is a low-severity vulnerability in axios, published on 24 Apr 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-42040 and fix it if it is affected.\n\nWhat it is: CVE-2026-42040 is a low-severity vulnerability in axios, published on 24 Apr 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-42040 exists.\n\nAffected packages and fixed versions:\n- axios (npm): affected all versions; fixed in 0.31.1\n- axios (npm): affected all versions; fixed in 0.31.1\n- axios (npm): affected from 1.0.0; fixed in 1.15.1\n- axios (npm): affected from 1.0.0; fixed in 1.15.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-42040/ (Markdown: https://insights.sbomify.com/CVE-2026-42040/index.md)","id":"CVE-2026-42040","markdown":"https://insights.sbomify.com/CVE-2026-42040/index.md","name":"CVE-2026-42040","record":{"aliases":["CLEANSTART-2026-CE61483","CLEANSTART-2026-LV58497","DEBIAN-CVE-2026-42040","ECHO-765e-d879-a5bc","GHSA-xhjh-pmcv-23jw","MINI-2344-jr23-jcqx","MINI-2428-mrc6-pfw6","MINI-2v9c-8vrh-j4cx","MINI-2vhc-hfxp-vr2w","MINI-46r5-j592-7p7h","MINI-5fcv-q6m7-44gf","MINI-6p2c-w357-w8xm","MINI-9gp5-r3h3-qpv2","MINI-9j89-gwgq-94gm","MINI-c7hq-4mcf-qwvx","MINI-f23w-5324-c7wp","MINI-g8v2-m95g-hjc9","MINI-hg8q-536r-wj4x","MINI-mmjp-7g73-62vg","MINI-mxm3-jwq9-2vjq","MINI-r243-5432-v46q","MINI-vv44-qhhm-6g32","MINI-w3g2-4539-f537","MINI-wh2f-h8vr-c5vg","ROOT-APP-NPM-CVE-2026-42040","UBUNTU-CVE-2026-42040"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["other"],"network_reachable":"yes","non_default_config":false,"product_category":"JavaScript HTTP client","requires_auth":"none","summary":"Axios library incorrectly decodes null bytes in URL parameters, potentially allowing null byte injection in specific non-standard usage scenarios.","user_interaction":"not_required","vuln_class":"other"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"axios","vendor":"axios"}],"cvss":{"score":3.7,"severity":"low","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-626","name":"Null Byte Interaction Error (Poison Null Byte)"},{"id":"CWE-116","name":"Improper Encoding or Escaping of Output"}],"description":"Axios is a promise based HTTP client for the browser and Node.js. Prior to 1.15.1 and 0.31.1, the encode() function in lib/helpers/AxiosURLSearchParams.js contains a character mapping (charMap) at line 21 that reverses the safe percent-encoding of null bytes. After encodeURIComponent('\\x00') correctly produces the safe sequence %00, the charMap entry '%00': '\\x00' converts it back to a raw null byte. Primary impact is limited because the standard axios request flow is not affected. This vulnerability is fixed in 1.15.1 and 0.31.1.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Axios: Null Byte Injection via Reverse-Encoding in AxiosURLSearchParams","id":"CVE-2026-42040","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"other","year":"2026"},"n_packages":4,"n_references":1,"next":{"headline":"Axios: Authentication Bypass via Prototype Pollution Gadget in `validateStatus` Merge Strategy","id":"CVE-2026-42041"},"packages":[{"ecosystem":"npm","fixed":["0.31.1"],"introduced":["0"],"last_affected":[],"package":"axios","purl":null,"source":"GHSA-xhjh-pmcv-23jw"},{"ecosystem":"npm","fixed":["0.31.1"],"introduced":["0"],"last_affected":[],"package":"axios","purl":"pkg:npm/axios","source":"GHSA-xhjh-pmcv-23jw"},{"ecosystem":"npm","fixed":["1.15.1"],"introduced":["1.0.0"],"last_affected":[],"package":"axios","purl":null,"source":"GHSA-xhjh-pmcv-23jw"},{"ecosystem":"npm","fixed":["1.15.1"],"introduced":["1.0.0"],"last_affected":[],"package":"axios","purl":"pkg:npm/axios","source":"GHSA-xhjh-pmcv-23jw"}],"prev":{"headline":"Axios: unbounded recursion in toFormData causes DoS via deeply nested request data","id":"CVE-2026-42039"},"products":["axios"],"published":"2026-04-24","related":[{"cvss_score":8.7,"headline":"Axios: Full Man-in-the-Middle via Prototype Pollution Gadget in `config.proxy`","id":"CVE-2026-44494","kev_date_added":null,"published":"2026-06-11"},{"cvss_score":8.6,"headline":"axios's shouldBypassProxy does not recognize IPv4-mapped IPv6 addresses, allowing NO_PROXY bypass (incomplete fix for CVE-2025-62718)","id":"CVE-2026-44492","kev_date_added":null,"published":"2026-06-11"},{"cvss_score":8.3,"headline":"axios before 0.33.0 Prototype Pollution via Node HTTP adapter","id":"CVE-2026-67320","kev_date_added":null,"published":"2026-08-01"},{"cvss_score":8.2,"headline":"Axios: Proxy-Authorization Credential Leak to Origin Server Across HTTP-to-HTTPS Redirect in Axios Node.js HTTP Adapter","id":"CVE-2026-44487","kev_date_added":null,"published":"2026-06-11"},{"cvss_score":7.7,"headline":"Possible SSRF and Credential Leakage via Absolute URL in axios Requests","id":"CVE-2025-27152","kev_date_added":null,"published":"2025-03-07"},{"cvss_score":7.5,"headline":"Axios: Proxy-Authorization header leaks to redirect target when proxy is re-evaluated to direct connection","id":"CVE-2026-44486","kev_date_added":null,"published":"2026-06-11"},{"cvss_score":7.5,"headline":"Axios: Allocation of Resources Without Limits or Throttling in axios","id":"CVE-2026-44488","kev_date_added":null,"published":"2026-06-11"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-04-27","vendors":["axios"]},"summary":"Axios library incorrectly decodes null bytes in URL parameters, potentially allowing null byte injection in specific non-standard usage scenarios.","url":"https://insights.sbomify.com/CVE-2026-42040/"}