Skip to content
OpenAdvisories

Description

Axios is a promise based HTTP client for the browser and Node.js. Prior to 1.15.1 and 0.31.1, the Axios library's XSRF token protection logic uses JavaScript truthy/falsy semantics instead of strict boolean comparison for the withXSRFToken config property. When this property is set to any truthy non-boolean value (via prototype pollution or misconfiguration), the same-origin check (isURLSameOrigin) is short-circuited, causing XSRF tokens to be sent to all request targets including cross-origin servers controlled by an attacker. This vulnerability is fixed in 1.15.1 and 0.31.1.

Affected products

VendorProductAffectedFixed
axios axios >= 1.0.0, < 1.15.1, < 0.31.1 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 node-axios 1.15.2-1 —
Debian 13 node-axios No fix yet —
Debian 12 node-axios No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 node-axios No fix yet —
Ubuntu 25.10 node-axios No fix yet —
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 26.04 LTS node-axios No fix yet —
Ubuntu Pro 24.04 LTS node-axios No fix yet —
Ubuntu Pro 22.04 LTS node-axios No fix yet —
Ubuntu Pro 20.04 LTS node-axios No fix yet —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling jitsucom-jitsu-console 2.11.0-r22 —
Wolfi rolling katib-earlystopping +8 0.19.0-r31 —
Wolfi rolling katib-suggestion-goptuna-compat 0.19.0-r40 —
Wolfi rolling kubeflow-centraldashboard 1.10.0-r21 —
Wolfi rolling langfuse-3 +1 3.174.1-r0 —
Wolfi rolling lerna 9.0.7-r4 —
Wolfi rolling nextcloud-server-33 33.0.6-r0 —
Wolfi rolling opensearch-dashboards-3 3.6.0-r3 —
Wolfi rolling prism 5.15.10-r0 —
Wolfi rolling saf 1.6.0-r0 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm axios >= 1.0.0, < 1.15.1 1.15.1 GHSA-xx6v-rp6x-q39c
npm axios < 0.31.1 0.31.1 GHSA-xx6v-rp6x-q39c

Advisories 2

References