Skip to main content

ExifReader EUVDEUVD-2026-30842

| CVE-2026-8814 MEDIUM
Improper Handling of Highly Compressed Data (Data Amplification) (CWE-409)
2026-05-19 snyk GHSA-rr89-w3h9-m66j
5.5
CVSS 4.0 · Vendor: snyk
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify service parsing PNG files with ExifReader async mode
  2. Delivery
    Craft PNG with maximally compressed zTXt chunk
  3. Exploit
    Deliver crafted PNG via upload endpoint or API
  4. Execution
    ExifReader async path decompresses zTXt with no size limit
  5. Persist
    Server heap exhausted by materialized output
  6. Impact
    Denial of service achieved

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V2 - Validation and Business Logic Compression ratio limits
Exploitation Conditions

Exploitation requires that the target application calls ExifReader.load() with the async: true option explicitly set - this is the specific configuration that routes zTXt decompression through the Compression Streams code path lacking a size bound. The synchronous parsing path does not invoke the vulnerable decompression logic and is not affected. The attacker must be able to supply a crafted PNG to the application for processing, such as via a file upload endpoint, URL-based image fetch, or any automated image ingestion pipeline. No authentication is required (PR:N) and no user interaction is needed (UI:N) - the vulnerability is triggered server-side automatically upon ExifReader.load() execution. The sole limiting factor is the async: true configuration requirement, which is non-default in many usage patterns and absent from synchronous deployments.

Impact

CVSS 5.3 Medium (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P) accurately represents the attack surface: network-accessible, no credentials, no user interaction, low complexity. The A:L (Low availability impact) rating may understate real-world severity in server-side deployments processing untrusted uploads at volume, since a small number of concurrent bomb payloads could exhaust heap and crash the Node.js process. The E:P modifier confirms public proof-of-concept code exists, directly lowering attacker skill requirements. No EPSS score was provided in the input data, so probabilistic exploitation likelihood cannot be quantified. This CVE is absent from CISA KEV, indicating no confirmed widespread active exploitation at time of analysis. The non-default async: true requirement is the primary real-world limiting factor - deployments using only synchronous parsing are unexposed, which meaningfully reduces the affected population beyond what the raw CVSS score implies.

Exploit ScenarioDerived

An attacker submits a small, specially crafted PNG file - containing a zTXt chunk engineered for maximum compression ratio, analogous to a zip bomb - to a web service that accepts image uploads and processes them with ExifReader.load(file, { async: true }). Upon parsing, ExifReader decompresses the zTXt chunk without any size ceiling and materializes a multi-gigabyte Comment string in heap memory, crashing or severely degrading the Node.js process. A public proof-of-concept demonstrating this technique is available at https://gist.github.com/yuki-matsuhashi/cad1a45d936062438b4ab24613c34c55.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 19, 2026

Decompression bomb (data amplification) in ExifReader npm package before 4.39.0 allows remote unauthenticated attackers to exhaust server memory by supplying a crafted PNG file with a highly compressed zTXt metadata chunk. The vulnerable path activates only when the caller enables asynchronous parsing (async: true), at which point ExifReader decompresses the chunk via the Compression Streams API with no upper bound on output size. Publicly available proof-of-concept exploit code exists (E:P); this CVE is not listed in CISA KEV.

RemediationAI

Upgrade ExifReader to version 4.39.0 or later; this is the vendor-released patch confirmed by upstream commit 5f116128adc19f674902f8bf582bfe7dd0a36375 (https://github.com/mattiasw/ExifReader/commit/5f116128adc19f674902f8bf582bfe7dd0a36375) and the corresponding CHANGELOG entry. After upgrading, applications with stricter memory budgets should lower the default 128 MiB cap by passing decompress: { maxDecompressedSize: 16 * 1024 * 1024 } alongside async: true; blocks exceeding the limit are silently skipped with a warning, so this may omit legitimate but unusually large metadata. If an immediate upgrade is not possible, the most direct compensating control is to remove async: true from all ExifReader.load() calls - this eliminates the vulnerable decompression path entirely at the cost of losing async performance benefits. A secondary compensating control is to validate and reject PNG files above a conservative raw file-size threshold before passing them to ExifReader; note this limits input size but does not directly bound decompressed output, so it provides weaker guarantees than the patch. See the Snyk advisory at https://security.snyk.io/vuln/SNYK-JS-EXIFREADER-16689340 for additional guidance.

Affected VersionsENISA

exifreader 0 <4.39.0

Affected Packages

npm exifreader fix: 4.39.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in npm

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

ExifReader (cpe:2.3:a:n/a:exifreader:*:*:*:*:*:*:*:*) is a JavaScript library that parses image metadata across formats including JPEG, PNG, HEIC, and WebP. PNG files support zTXt chunks, which store arbitrary textual metadata compressed with zlib DEFLATE. CWE-409 (Improper Handling of Highly Compressed Data) describes the root cause class: libraries that decompress attacker-controlled data without enforcing an output-size limit can be forced to materialize disproportionately large buffers - a decompression bomb. The vulnerable code path in ExifReader uses the browser/Node Compression Streams API (or caller-supplied custom decompression functions) to expand zTXt content asynchronously, and prior to 4.39.0, no maximum decompressed size was enforced. The fix commit (5f116128) introduces a decompress.maxDecompressedSize option defaulting to 128 MiB; blocks exceeding the limit are skipped with a console.warn and remaining tags are returned normally.

Know when Exifreader gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (snyk) PRIMARY 5.5 MEDIUM
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/E:P

Primary rating from Vendor (snyk) · only source for this CVE.

CVSS VectorVendor: snyk

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
CVSS changed
May 19, 2026 - 07:22 NVD
5.3 (MEDIUM) 5.5 (MEDIUM)
Patch available
May 19, 2026 - 07:16 EUVD

DescriptionCVE.org

Versions of the package exifreader before 4.39.0 are vulnerable to Improper Handling of Highly Compressed Data (Data Amplification) due to decompressing PNG zTXt metadata without enforcing a built-in maximum decompressed output size. When asynchronous parsing is enabled, a crafted PNG file containing a highly compressed zTXt chunk can cause ExifReader to materialize a disproportionately large Comment value in memory.

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 9 npm packages depend on exifreader (9 direct, 0 indirect)

Ecosystem-wide dependent count for version 4.20.0.

Threat Intelligence Overview

EPSS Score
0.0%
Top 87% exploitable
Threat Intel
1
1 source
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

28
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +28
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy