{"id":"CVE-2023-45857","published":"2023-11-08T00:00:00Z","modified":"2024-09-04T15:15:16Z","title":"An issue discovered in Axios 1.5.1 inadvertently reveals the confidential XSRF-TOKEN stored in cookies by including it…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00729,"percentile":0.55153,"provenance":"source"},"cwes":[],"references":[{"url":"https://github.com/axios/axios/issues/6006","tags":[]},{"url":"https://security.netapp.com/advisory/ntap-20240621-0006/","tags":[]}],"priority":{"score":16.0,"factors":[{"name":"EPSS percentile","points":11.03},{"name":"Public exploit code","points":5.0}]},"exploitSources":{"pocGithub":{"count":2,"skipped":1,"earliest":"2023-10-26","earliestUrl":"https://github.com/intercept6/CVE-2023-45857-Demo","repos":[{"name":"fuyuooumi1027/CVE-2023-45857-Demo","url":"https://github.com/fuyuooumi1027/CVE-2023-45857-Demo","stars":1,"created":"2023-11-24"},{"name":"intercept6/CVE-2023-45857-Demo","url":"https://github.com/intercept6/CVE-2023-45857-Demo","stars":0,"created":"2023-10-26"}]},"first":{"date":"2023-10-26","source":"PoC-in-GitHub","url":"https://github.com/intercept6/CVE-2023-45857-Demo"},"provenance":"source"},"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2024-09-04T15:13:57.418014Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"axios","vulnerableRanges":[">=1.0.0, <1.6.0",">=0.8.1, <0.28.0"],"patched":["1.6.0","0.28.0"],"from":["GHSA-wf5p-g6vw-rhxx"],"provenance":"source"}],"summary":{"text":"The flaw lies in Axios 1.5.1, where the library inadvertently includes the confidential XSRF-TOKEN value, read from cookies, in the X-XSRF-TOKEN HTTP header on every request it makes, regardless of destination host. An attacker who can observe or receive those outbound requests could read the token and gain access to sensitive information.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:11:41Z"},"euvd":{"id":"EUVD-2023-3051","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-axios-cve-2023-45857","children":[{"from":"CVE-2023-45857","to":"CVE-2025-27152","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["lib/adapters/xhr.js"],"commits":["https://github.com/axios/axios/commit/2755df562b9c194fba6d8b609a383443f6a6e967","https://github.com/axios/axios/commit/96ee232bd3ee4de2e657333d4d2191cd389e14d0","https://github.com/axios/axios/commit/02c3c69ced0f8fd86407c23203835892313d7fde","https://github.com/axios/axios/commit/fb8eec214ce7744b5ca787f2c3b8339b2f54b00f"],"basis":"shared function","functions":["xhrAdapter"]}]},{"from":"CVE-2023-45857","to":"CVE-2026-25639","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["lib/core/mergeConfig.js"],"commits":["https://github.com/axios/axios/commit/2755df562b9c194fba6d8b609a383443f6a6e967","https://github.com/axios/axios/commit/96ee232bd3ee4de2e657333d4d2191cd389e14d0","https://github.com/axios/axios/commit/28c721588c7a77e7503d0a434e016f852c597b57","https://github.com/axios/axios/commit/d7ff1409c68168d3057fc3891f911b2b92616f9e"],"basis":"shared function","functions":["mergeConfig"]}]},{"from":"CVE-2023-45857","to":"CVE-2026-42264","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["lib/core/mergeConfig.js"],"commits":["https://github.com/axios/axios/commit/2755df562b9c194fba6d8b609a383443f6a6e967","https://github.com/axios/axios/commit/96ee232bd3ee4de2e657333d4d2191cd389e14d0","https://github.com/axios/axios/commit/47915144662f2733e6c051bdcb895a8c8f0586aa"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2019-10742","published":"2019-05-07","fixed":"0.18.1","kev":false},{"cve":"CVE-2020-28168","published":"2020-11-06","fixed":"0.21.1","kev":false},{"cve":"CVE-2021-3749","published":"2021-08-31","fixed":"0.21.2","kev":false},{"cve":"CVE-2023-45857","published":"2023-11-08","fixed":"1.6.0","kev":false},{"cve":"CVE-2024-39338","published":"2024-08-09","fixed":"1.7.4","kev":false,"link":{"from":"CVE-2023-45857","to":"CVE-2024-39338","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:axios","fromFixed":"1.6.0","toFixed":"1.7.4","daysApart":275}]}},{"cve":"CVE-2025-27152","published":"2025-03-07","fixed":"1.8.2","kev":false},{"cve":"CVE-2025-58754","published":"2025-09-12","fixed":"1.12.0","kev":false}],"package":"npm:axios"}}