Vulnerability library
Security checkSeptember 30, 2026

Axios: Node HTTP adapter prototype-pollution gadget allows request socket hijack via inherited createConnection

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

High severitynpmaxios

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

Axios’ Node HTTP adapter can act as a read-side prototype-pollution gadget for Node’s sensitive createConnection request option. The adapter creates a null-prototype options object, but Node’s HTTP client can copy or normalize request options into ordinary objects before connection creation. If Object.prototype.createConnection has been polluted elsewhere in the same process, Node can call the inherited function and create a socket to an attacker-controlled endpoint.

Recommendation

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

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

References

Could your website be exposed too?

SmartScanner can check your website for Axios: Node HTTP adapter prototype-pollution gadget allows request socket hijack via inherited createConnection and gives you actionable findings to investigate.

Start a free scan

Related Issues

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