GHSA-gmq8-994r-jv83

Suggest an improvement
Source
https://github.com/advisories/GHSA-gmq8-994r-jv83
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/03/GHSA-gmq8-994r-jv83/GHSA-gmq8-994r-jv83.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-gmq8-994r-jv83
Aliases
Downstream
Related
Published
2026-03-12T00:31:17Z
Modified
2026-03-17T07:44:11.250782Z
Severity
  • 5.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L CVSS Calculator
  • 6.9 (Medium) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N CVSS Calculator
Summary
yauzl contains an off-by-one error
Details

yauzl (aka Yet Another Unzip Library) version 3.2.0 for Node.js contains an off-by-one error in the NTFS extended timestamp extra field parser within the getLastModDate() function. The while loop condition checks cursor < data.length + 4 instead of cursor + 4 <= data.length, allowing readUInt16LE() to read past the buffer boundary. A remote attacker can cause a denial of service (process crash via ERROUTOF_RANGE exception) by sending a crafted zip file with a malformed NTFS extra field. This affects any Node.js application that processes zip file uploads and calls entry.getLastModDate() on parsed entries. Fixed in version 3.2.1.

Database specific
{
    "github_reviewed_at": "2026-03-13T18:58:11Z",
    "nvd_published_at": "2026-03-11T23:16:00Z",
    "cwe_ids": [
        "CWE-193"
    ],
    "severity": "MODERATE",
    "github_reviewed": true
}
References

Affected packages

npm / yauzl

Package

Affected ranges

Type
SEMVER
Events
Introduced
3.2.0
Fixed
3.2.1

Affected versions

3.*
3.2.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/03/GHSA-gmq8-994r-jv83/GHSA-gmq8-994r-jv83.json"