HighGHSA-42xw-2xvc-qx8mCVE-2019-10742

Denial of Service in axios

Published 29 May 2019 · Updated 8 Nov 2023

Affected package

Affected
<0.18.1
Fixed in
0.18.1
Update to the fixed version for your release line, for example:npm install axios@0.18.1

Details

Versions of axios prior to 0.18.1 are vulnerable to Denial of Service. If a request exceeds the maxContentLength property, the package prints an error but does not stop the request. This may cause high CPU usage and lead to Denial of Service.

Recommendation

Upgrade to 0.18.1 or later.

Is GHSA-42xw-2xvc-qx8m in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected axios, and gives you the command that fixes it.

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.