GHSA-38gx-cfqf-f652: Duplicate Advisory Axios: Prototype Pollution Auth Subfields Vulnerability
MODERATEGHSA-38gx-cfqf-f652 is a MODERATE axios: prototype pollution auth subfields vulnerability (CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')) affecting Duplicate Advisory libraries in the npm ecosystem. The issue involves axios: prototype pollution auth subfields can inject basic auth. Remediation is available in the latest vendor maintenance releases.
GHSA-38gx-cfqf-f652 at a Glance
How to Fix GHSA-38gx-cfqf-f652
To remediate this vulnerability, upgrade all affected Duplicate Advisory dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install axios@Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls axios
How to Check if You Are Affected
To determine whether your Node.js application is affected by GHSA-38gx-cfqf-f652, inspect your project dependencies using npm:
npm ls axios
Analyze the terminal output to locate any version of Duplicate Advisory in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.
Note: The npm ls axios command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution'), where the product receives input from an upstream component that specifies attributes that are to be initialized or updated in an object, but it does not properly control modifications of attributes of the object prototype. In Duplicate Advisory, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-38gx-cfqf-f652 Affected Duplicate Advisory Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
axios
|
npm |
≥ 1.15.2
|
|
References
Frequently Asked Questions
What is GHSA-38gx-cfqf-f652?
Which Duplicate Advisory versions are affected?
What version fixes GHSA-38gx-cfqf-f652?
Is axios affected?
What CWE is associated with GHSA-38gx-cfqf-f652?
How can I check npm dependencies for GHSA-38gx-cfqf-f652?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-38gx-cfqf-f652",
"modified" : "2026-08-07T17:51:34Z",
"published" : "2026-08-01T15:30:27Z",
"withdrawn" : "2026-08-07T17:51:06Z",
"aliases" : [ ],
"summary" : "Duplicate Advisory: Axios: Prototype pollution auth subfields can inject Basic auth",
"details" : "## Duplicate Advisory\n\nThis advisory has been withdrawn because it is a duplicate of GHSA-xj6q-8x83-jv6g. This link is maintained to preserve external references.\n\n## Original Description\naxios versions >=1.15.2 and <1.18.0 contain prototype-pollution read-side gadgets in Basic auth subfield handling (lib/adapters/http.js and lib/helpers/resolveConfig.js). When an application is already affected by a separate prototype-pollution primitive and makes an axios request with an own auth object that omits the username and/or password properties, axios reads the inherited Object.prototype.username and Object.prototype.password values and uses them to construct an outbound 'Authorization: Basic ...' header. axios itself does not pollute prototypes. The practical impact is outbound request tampering: an attacker who controls the polluted prototype values can inject attacker-chosen Basic auth credentials or replace an existing Authorization header. Credential disclosure is only possible under additional application-specific conditions.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "axios"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.15.2"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "< 1.18.0"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/axios/axios/security/advisories/GHSA-xj6q-8x83-jv6g"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-67314"
}, {
"type" : "WEB",
"url" : "https://www.vulncheck.com/advisories/axios-before-prototype-pollution-via-auth-subfields"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-1321" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-08-07T17:51:06Z",
"nvd_published_at" : "2026-08-01T13:17:01Z"
}
}