GHSA-7g4h-34vf-7565
Malicious code in axios-test-one (npm)
Impact
## Source: amazon-inspector (5f53cd512e7aa0549f6ff4ae3064dc13fd8d72c8dddc464f7639376abfadc4a6) `axios-test-one@1.19.0` impersonates the real `axios` package (ships axios's README/CHANGELOG verbatim, bundles are stamped `/*! Axios v1.18.9 Copyright (c) 2026 Jay and contributors */`, and declares axios's own repository/homepage URLs) while adding an undeclared runtime dependency on `telemetry-metrics@^0.2.1`. `lib/helpers/telemetry.js` does `import telemetry from "telemetry-metrics"; export function sendTelemetry(){ telemetry().plugin(); }`, and `lib/core/Axios.js` invokes `sendTelemetry()` from `_request` whenever `config.method === 'get'`. Any code shipped by the third-party `telemetry-metrics` package therefore executes in the consumer's Node.js process on the first `axios.get(...)` call, giving that package arbitrary code execution in the installer's runtime under cover of the axios API surface. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/b9106eb680591c55d453ba1074d388eafca5b0f4/osv/malicious/npm/axios-test-one/MAL-2026-10727.json))
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| npm | axios-test-one | = 1.19.0 | none recorded |
| npm | axios-test-one | = 1.19.1 | none recorded |
| npm | axios-test-one | = 1.19.6 | none recorded |
| npm | axios-test-one | = 1.19.5 | none recorded |
| npm | axios-test-one | = 1.19.2 | none recorded |
| npm | axios-test-one | = 1.19.4 | none recorded |
| npm | axios-test-one | = 1.19.7 | none recorded |
| npm | axios-test-one | = 1.19.3 | none recorded |
Weakness classification
References
- GitHub advisory
- https://github.com/advisories/GHSA-7g4h-34vf-7565
- https://github.com/ossf/malicious-packages/blob/b9106eb680591c55d453ba1074d388eafca5b0f4/osv/malicious/npm/axios-test-one/MAL-2026-10727.json
- https://www.npmjs.com/package/axios-test-one/v/1.19.0
- https://github.com/ossf/malicious-packages/blob/4a2a63e60293b2d6042647ae3b047b7ce8a34c1d/osv/malicious/npm/axios-test-one/MAL-2026-10727.json
- https://www.npmjs.com/package/axios-test-one/v/1.19.1
- https://www.npmjs.com/package/axios-test-one/v/1.19.2
- https://www.npmjs.com/package/axios-test-one/v/1.19.3
- https://www.npmjs.com/package/axios-test-one/v/1.19.4
- https://www.npmjs.com/package/axios-test-one/v/1.19.5
- https://www.npmjs.com/package/axios-test-one/v/1.19.6
- https://www.npmjs.com/package/axios-test-one/v/1.19.7
- https://github.com/ossf/malicious-packages/blob/672afd706555c110bda936d989979013c03d62f2/osv/malicious/npm/axios-test-one/MAL-2026-10727.json