GHSA-h64w-w9pr-82m4

Suggest an improvement
Source
https://github.com/advisories/GHSA-h64w-w9pr-82m4
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-h64w-w9pr-82m4/GHSA-h64w-w9pr-82m4.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-h64w-w9pr-82m4
Aliases
Published
2026-05-29T17:58:37Z
Modified
2026-07-17T17:00:52Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
  • 7.7 (High) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:P CVSS Calculator
Summary
ExifReader is vulnerable to denial of service via crafted ICC `mluc` tag
Details

Impact

When parsing an image with an embedded ICC profile that contains a crafted multiLocalizedUnicodeType (mluc) tag, ExifReader can be made to allocate memory proportional to attacker-controlled fields in the tag rather than to the actual size of the input. Processing such an image causes excessive memory consumption and can terminate the host process (out-of-memory).

Any application that calls ExifReader.load() on untrusted images, for example, user uploads in a web service, is affected. ICC profiles are carried in JPEG, TIFF, PNG, HEIC, AVIF, JPEG XL, and WebP, so the issue is reachable from any of those formats.

Patches

Fixed in exifreader@4.39.0. Upgrade with:

npm install exifreader@latest

Bower users consume the bundled dist/ files from this repository, and the same fix is committed there.

Workarounds

If upgrading is not immediately possible, configure a custom build that excludes the icc module so that ICC parsing (and therefore this code path) is skipped entirely.

Resources

Database specific
{
    "cwe_ids":  [
        "CWE-1284"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-05-29T17:58:37Z",
    "nvd_published_at":  "2026-05-19T07:16:30Z",
    "severity":  "HIGH"
}
References

Affected packages

npm / exifreader

Package

Affected ranges

Type
SEMVER
Events
Introduced
2.10.0
Fixed
4.39.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-h64w-w9pr-82m4/GHSA-h64w-w9pr-82m4.json"