{"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-2023-45857 exists.","fix":"Upgrade axios to a fixed version for your release line: 0.28.0 or 1.6.0.","what":"CVE-2023-45857 is a medium-severity vulnerability in n/a, published on 8 Nov 2023. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2023-45857 and fix it if it is affected.\n\nWhat it is: CVE-2023-45857 is a medium-severity vulnerability in n/a, published on 8 Nov 2023. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-45857 exists.\n\nAffected packages and fixed versions:\n- axios (npm): affected from 0.8.1; fixed in 0.28.0\n- axios (npm): affected from 0.8.1; fixed in 0.28.0\n- axios (npm): affected from 1.0.0; fixed in 1.6.0\n- axios (npm): affected from 1.0.0; fixed in 1.6.0\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-2023-45857/ (Markdown: https://insights.sbomify.com/CVE-2023-45857/index.md)","id":"CVE-2023-45857","markdown":"https://insights.sbomify.com/CVE-2023-45857/index.md","name":"CVE-2023-45857","record":{"aliases":["CLSA-2026-1784943156","DEBIAN-CVE-2023-45857","GHSA-wf5p-g6vw-rhxx","ROOT-APP-NPM-CVE-2023-45857","UBUNTU-CVE-2023-45857"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"JavaScript HTTP client","requires_auth":"none","summary":"Axios leaks XSRF tokens to all hosts, allowing attackers to view sensitive information and potentially bypass CSRF protections.","user_interaction":"required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"axios","vendor":"axios"}],"cvss":{"score":6.5,"severity":"medium","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-352","name":"Cross-Site Request Forgery"}],"description":"An issue discovered in Axios 1.5.1 inadvertently reveals the confidential XSRF-TOKEN stored in cookies by including it in the HTTP header X-XSRF-TOKEN for every request made to any host allowing attackers to view sensitive information.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":"2023-10-18","github_poc":3,"max_poc_stars":1,"metasploit":0,"nuclei":0,"refs":[{"date":"2023-11-24T22:42:56Z","kind":"github_poc","ref":"https://github.com/fuyuooumi1027/CVE-2023-45857-Demo","stars":1,"title":null},{"date":"2023-10-18T12:19:34Z","kind":"github_poc","ref":"https://github.com/valentin-panov/CVE-2023-45857","stars":0,"title":null},{"date":"2023-10-26T04:18:03Z","kind":"github_poc","ref":"https://github.com/intercept6/CVE-2023-45857-Demo","stars":0,"title":"CVE-2023-45857の挙動を確認するデモ"}],"tier":"weaponised"},"has_fix":true,"headline":"Axios Cross-Site Request Forgery Vulnerability","id":"CVE-2023-45857","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"information_disclosure","year":"2023"},"n_packages":4,"n_references":2,"next":{"headline":"Path traversal in PRTG Network Monitor","id":"CVE-2023-45858"},"packages":[{"ecosystem":"npm","fixed":["0.28.0"],"introduced":["0.8.1"],"last_affected":[],"package":"axios","purl":null,"source":"GHSA-wf5p-g6vw-rhxx"},{"ecosystem":"npm","fixed":["0.28.0"],"introduced":["0.8.1"],"last_affected":[],"package":"axios","purl":"pkg:npm/axios","source":"GHSA-wf5p-g6vw-rhxx"},{"ecosystem":"npm","fixed":["1.6.0"],"introduced":["1.0.0"],"last_affected":[],"package":"axios","purl":null,"source":"GHSA-wf5p-g6vw-rhxx"},{"ecosystem":"npm","fixed":["1.6.0"],"introduced":["1.0.0"],"last_affected":[],"package":"axios","purl":"pkg:npm/axios","source":"GHSA-wf5p-g6vw-rhxx"}],"prev":{"headline":"File upload in n/a","id":"CVE-2023-45856"},"products":["n/a"],"published":"2023-11-08","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)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-09-04","vendors":["n/a"]},"summary":"Axios leaks XSRF tokens to all hosts, allowing attackers to view sensitive information and potentially bypass CSRF protections.","url":"https://insights.sbomify.com/CVE-2023-45857/"}