製品・ソフトウェアに関する情報
axios projectのaxiosにおける複数の脆弱性
Title axios projectのaxiosにおける複数の脆弱性
Summary

AxiosはブラウザおよびNode.js向けのPromiseベースのHTTPクライアントです。バージョン1.15.1および0.31.1以前において、AxiosのHTTPアダプター(lib/adapters/http.js)にプロトタイプ汚染のガジェットが存在し、これにより攻撃者は送信されるリクエストに任意のHTTPヘッダーを注入することが可能でした。この脆弱性は、データペイロードのダックタイプチェックを悪用するものです。具体的には、Object.prototypeにgetHeaders、append、pipe、on、once、Symbol.toStringTagが汚染されている場合、Axiosは任意の単純なオブジェクトペイロードをFormDataインスタンスと誤認します。これにより、攻撃者が制御するgetHeaders()関数を呼び出し、その返却したヘッダーを送信リクエストにマージします。脆弱なコードはlib/adapters/http.jsにのみ存在していました。プロトタイプ汚染の原因はAxios自体から発生する必要はなく、アプリケーションの依存関係ツリー内のいかなる依存物のプロトタイプ汚染プリミティブでも、このガジェットをトリガーするのに十分です。この脆弱性はバージョン1.15.1および0.31.1で修正されました。

Possible impacts 当該ソフトウェアが扱う全ての情報が外部に漏れる可能性があります。 また、当該ソフトウェアが扱う全ての情報が書き換えられる可能性があります。 さらに、当該ソフトウェアは停止しません。 そして、この脆弱性を悪用した攻撃の影響は、他のソフトウェアには及びません。 
Solution

正式な対策が公開されています。ベンダ情報を参照して適切な対策を実施してください。

Publication Date April 24, 2026, midnight
Registration Date April 30, 2026, 12:25 p.m.
Last Update April 30, 2026, 12:25 p.m.
CVSS3.0 : 重要
Score 7.4
Vector CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
Affected System
axios project
axios 0.31.1 未満
axios 1.0.0 以上 1.15.1 未満
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
Change Log
No Changed Details Date of change
1 [2026年04月30日]
  掲載
April 30, 2026, 12:25 p.m.

NVD Vulnerability Information
CVE-2026-42035
Summary

Axios is a promise based HTTP client for the browser and Node.js. Prior to 1.15.1 and 0.31.1, a prototype pollution gadget exists in the Axios HTTP adapter (lib/adapters/http.js) that allows an attacker to inject arbitrary HTTP headers into outgoing requests. The vulnerability exploits duck-type checking of the data payload, where if Object.prototype is polluted with getHeaders, append, pipe, on, once, and Symbol.toStringTag, Axios misidentifies any plain object payload as a FormData instance and calls the attacker-controlled getHeaders() function, merging the returned headers into the outgoing request. The vulnerable code resides exclusively in lib/adapters/http.js. The prototype pollution source does not need to originate from Axios itself — any prototype pollution primitive in any dependency in the application's dependency tree is sufficient to trigger this gadget. This vulnerability is fixed in 1.15.1 and 0.31.1.

Publication Date April 25, 2026, 3:16 a.m.
Registration Date April 25, 2026, 4:08 a.m.
Last Update April 28, 2026, 3:57 a.m.
Related information, measures and tools
Common Vulnerabilities List