CVE-2026-8813: High severity npm/exifreader vulnerability

Published May 19, 2026
·
Updated

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

- Reporter's writeup: https://gist.github.com/yuki-matsuhashi/3243ea38e5fbf8cfe19b624f04c9f4b4 - Patch: https://github.com/mattiasw/ExifReader/commit/c9d88b67e127b2dcc7b46e328df468257fb2dc30

Other sources

This affects versions of the package exifreader before 4.39.0. A crafted image containing an ICC mluc tag can set an attacker-controlled record count together with a zero record size. During parsing, ExifReader repeatedly processes the same record and appends entries to an array without sufficient bounds validation, causing excessive memory growth. In applications that parse attacker-supplied images, this may lead to denial of service through memory exhaustion.

NVD

Affected Software

2 affected componentsFixes available
npm/exifreader<4.39.0
npm/exifreader>=2.10.0<4.39.0
4.39.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade npm/exifreader to a version that resolves this vulnerability.

    Fixed in 4.39.0
  2. Upgrade

    Upgrade exifreader to a version that resolves this vulnerability.

    Fixed in 4.39.0
  3. Configuration

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

    ExifReader (custom build) exclude_icc_module = true

Event History

May 19, 2026
CVE Published
via MITRE·05:00 AM
Data Sourced
via MITRE·05:00 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·07:16 AM
DescriptionSeverityWeakness
May 29, 2026
Advisory Published
via GitHub·05:58 PM
Data Sourced
via GitHub·05:58 PM
DescriptionSeverityWeaknessAffected Software
May 8, 58583
Event
via FIRST·08:22 PM

Frequently Asked Questions

1

What is the severity of CVE-2026-8813?

The severity of CVE-2026-8813 is classified as critical due to the potential for denial of service through crafted image files.

2

How do I fix CVE-2026-8813?

To fix CVE-2026-8813, upgrade the exifreader package to version 4.39.0 or later.

3

What versions of exifreader are affected by CVE-2026-8813?

CVE-2026-8813 affects all versions of exifreader prior to 4.39.0.

4

What type of attack is associated with CVE-2026-8813?

CVE-2026-8813 is associated with denial of service attacks through crafted images containing ICC mluc tags.

5

Is user data at risk due to CVE-2026-8813?

CVE-2026-8813 does not directly compromise user data but can cause service interruptions.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203