UBUNTU-CVE-2026-42042

Source
https://ubuntu.com/security/CVE-2026-42042
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-42042.json
JSON Data
https://api.test.osv.dev/v1/vulns/UBUNTU-CVE-2026-42042
Upstream
Published
2026-04-24T18:16:00Z
Modified
2026-08-14T01:25:30Z
Severity
  • 5.4 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N CVSS Calculator
  • Ubuntu - medium
Summary
[none]
Details

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.

References

Affected packages

Ubuntu:Pro:20.04:LTS / node-axios

Package

Name
node-axios
Purl
pkg:deb/ubuntu/node-axios?arch=source&distro=esm-apps%2Ffocal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

0.*
0.19.0+dfsg-2
0.19.0+dfsg-2ubuntu0.1~esm1

Ecosystem specific

{
    "binaries":  [
        {
            "binary_name":  "node-axios",
            "binary_version":  "0.19.0+dfsg-2ubuntu0.1~esm1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-42042.json"

Ubuntu:Pro:22.04:LTS / node-axios

Package

Name
node-axios
Purl
pkg:deb/ubuntu/node-axios?arch=source&distro=esm-apps%2Fjammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

0.*
0.21.1+dfsg-1
0.23.0+dfsg-2
0.24.0+dfsg-1
0.25.0+dfsg-2
0.26.0+dfsg-1
0.26.0+dfsg-1ubuntu0.1~esm1

Ecosystem specific

{
    "binaries":  [
        {
            "binary_name":  "node-axios",
            "binary_version":  "0.26.0+dfsg-1ubuntu0.1~esm1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-42042.json"

Ubuntu:Pro:24.04:LTS / node-axios

Package

Name
node-axios
Purl
pkg:deb/ubuntu/node-axios?arch=source&distro=esm-apps%2Fnoble

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

1.*
1.2.1+dfsg-1
1.5.1+dfsg-1
1.6.2+dfsg-1
1.6.8+dfsg-2
1.6.8+dfsg-2ubuntu0.1~esm1

Ecosystem specific

{
    "binaries":  [
        {
            "binary_name":  "node-axios",
            "binary_version":  "1.6.8+dfsg-2ubuntu0.1~esm1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-42042.json"

Ubuntu:25.10 / node-axios

Package

Name
node-axios
Purl
pkg:deb/ubuntu/node-axios?arch=source&distro=questing

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

1.*
1.7.9+dfsg-1
1.8.4+dfsg-1
1.11.0+dfsg-1

Ecosystem specific

{
    "binaries":  [
        {
            "binary_name":  "node-axios",
            "binary_version":  "1.11.0+dfsg-1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-42042.json"

Ubuntu:Pro:26.04:LTS / node-axios

Package

Name
node-axios
Purl
pkg:deb/ubuntu/node-axios?arch=source&distro=esm-apps%2Fresolute

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

1.*
1.11.0+dfsg-1
1.12.1+dfsg-1
1.13.2+dfsg-1build1
1.13.2+dfsg-1ubuntu0.1~esm1

Ecosystem specific

{
    "binaries":  [
        {
            "binary_name":  "node-axios",
            "binary_version":  "1.13.2+dfsg-1ubuntu0.1~esm1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-42042.json"