GHSA-8225-6cvr-8pqp

Suggest an improvement
Source
https://github.com/advisories/GHSA-8225-6cvr-8pqp
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2018/08/GHSA-8225-6cvr-8pqp/GHSA-8225-6cvr-8pqp.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-8225-6cvr-8pqp
Aliases
Published
2018-08-09T20:13:01Z
Modified
2023-11-01T04:47:53.039278Z
Severity
  • 5.9 (Medium) CVSS_V3 - CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
superagent vulnerable to zip bomb attacks
Details

Affected versions of superagent do not check the post-decompression size of ZIP compressed HTTP responses prior to decompressing. This results in the package being vulnerable to a ZIP bomb attack, where an extremely small ZIP file becomes many orders of magnitude larger when decompressed.

This may result in unrestrained CPU/Memory/Disk consumption, causing a denial of service condition.

Recommendation

Update to version 3.7.0 or later.

Database specific
{
    "nvd_published_at": null,
    "cwe_ids": [
        "CWE-400",
        "CWE-409"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2020-06-16T21:23:56Z"
}
References

Affected packages

npm / superagent

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.7.0