VYPR
High severityNVD Advisory· Published May 7, 2019· Updated Aug 4, 2024

CVE-2019-10742

CVE-2019-10742

Description

Axios up to and including 0.18.0 allows attackers to cause a denial of service (application crash) by continuing to accepting content after maxContentLength is exceeded.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
axiosnpm
< 0.18.10.18.1

Affected products

1

Patches

1
acabfbdf00a5

Destroy stream on exceeding maxContentLength (fixes #1098) (#1485)

https://github.com/axios/axiosGadzhi GadzhievMay 7, 2019via ghsa
1 file changed · +1 0
  • lib/adapters/http.js+1 0 modified
    @@ -181,6 +181,7 @@ module.exports = function httpAdapter(config) {
     
               // make sure the content length is not over the maxContentLength if specified
               if (config.maxContentLength > -1 && Buffer.concat(responseBuffer).length > config.maxContentLength) {
    +            stream.destroy();
                 reject(createError('maxContentLength size of ' + config.maxContentLength + ' exceeded',
                   config, null, lastRequest));
               }
    

Vulnerability mechanics

Generated by null/stub on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.

References

8

News mentions

0

No linked articles in our index yet.