Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. exifreader
  4. ›
  5. CVE-2026-53496

CVE-2026-53496: ExifReader HEIC/AVIF ISO-BMFF parser throws uncaught RangeError on truncated boxes

July 17, 2026

ExifReader 4.40.0 can throw an uncaught RangeError: Offset is outside the bounds of the DataView while parsing crafted HEIC/AVIF files. The file only needs a valid leading ftyp box with a HEIC/AVIF major brand followed by a malformed ISO-BMFF box, such as an empty 8-byte free box or a truncated extended-size box.

This is reachable through the public ExifReader.load() API for in-memory buffers and through the async file/URL loaders when an application parses attacker-supplied images. In applications that do not wrap every parse in a defensive try/catch, a single uploaded or fetched image can abort the request/worker and cause a denial of service.

Credit requested: Yaohui Wang.

References

  • github.com/advisories/GHSA-g77h-45rf-hcx4
  • github.com/mattiasw/ExifReader/releases/tag/v4.40.1
  • github.com/mattiasw/ExifReader/security/advisories/GHSA-g77h-45rf-hcx4
  • nvd.nist.gov/vuln/detail/CVE-2026-53496

Code Behaviors & Features

Detect and mitigate CVE-2026-53496 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 4.40.1

Fixed versions

  • 4.40.1

Solution

Upgrade to version 4.40.1 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Learn more about CVSS

Weakness

  • CWE-248: Uncaught Exception
  • CWE-755: Improper Handling of Exceptional Conditions

Source file

npm/exifreader/CVE-2026-53496.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 08 Aug 2026 00:18:42 +0000.