Vulnerability library
Security checkSeptember 30, 2026

Axios: Header Injection via Inherited headers After Minimal Interceptor

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

Medium severitynpmaxios

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

Axios request interceptors may return a replacement config object. If an interceptor returns a plain object without an own headers property, dispatchRequest() later evaluates config.headers and can resolve an inherited Object.prototype.headers value. In a process where another vulnerability has polluted Object.prototype.headers, axios can send attacker-controlled headers.

Recommendation

Update the axios package to the latest compatible version. Followings are version details:

  • Affected version(s): >= 1.0.0, < 1.20.0
  • Patched version(s): 1.20.0

References

Could your website be exposed too?

SmartScanner can check your website for Axios: Header Injection via Inherited headers After Minimal Interceptor and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated September 30, 2026