The Daily Byte
Breaking
Welcome to The Daily Byte — real stories from across Pakistan.
Monday, 23 November 2026 · Pakistan

The Daily Byte

Stories from Pakistan that deserve to be heard

CVE-2026-134164: Tiny JPEG Can Stall Node Servers

By The Daily Byte ·22 Nov 2026 ·3 min read
A white indoor security camera, representative of the cameras that produce the JPEG images probe-image-size reads

A 9.6-kilobyte JPEG can stall a Node.js server for 23 seconds. That is the finding behind CVE-2026-134164, a denial-of-service flaw in probe-image-size, a widely used library that reads the dimensions of an image without loading the whole file. The flaw was published on 21 November 2026, affects all versions before 7.5.0, and is rated 7.5, high severity.

The bug is in lib/exif_utils.js, in the code that looks for the orientation tag inside a JPEG's EXIF data. While scanning, it follows two kinds of sub-IFD pointers - tag 0x8769 (ExifIFD) and tag 0xA005 (InteropIFD) - and queues each one for a visit without remembering which offsets it has already seen. A crafted file fills its IFD with entries of both kinds, all pointing back at the IFD's own offset, so the queue fans out: with 100 entries the parse takes 26 milliseconds, with 200 it takes 131, with 400 it takes about two seconds, and with 800 entries it takes 23 seconds. The cost grows about fifteenfold each time the entry count doubles, and a full-size APP1 segment holding about 5,400 entries extrapolates to hours. The weakness is classed as CWE-407, inefficient algorithmic complexity.

Who can be hit, and how

The attack needs no login and no user interaction: the attacker only has to supply image bytes or an image URL to a service that calls the library - upload handlers, link unfurlers and image proxies are all in scope, and the same code runs through probe.sync, probe(stream) and probe(url). WebP and AVIF images reach the same code through their EXIF paths. Because Node.js runs JavaScript on a single event loop, one stalled parse freezes every request the process is serving, so a handful of small images can take a service down, and memory also grows with the job queue. The library is a dependency of image tooling across the Node.js ecosystem, so the exposure is easy to inherit without realising it. The flaw was found with the AploSec security scanner and confirmed by execution, and the researcher credited is Zachariah Mithani.

What the fix changes

Version 7.5.0 fixes the flaw. The advisory suggests keeping a set of visited IFD offsets and skipping ones already seen, and capping the total number of IFDs or entries processed per image. Operators should update to 7.5.0, and anyone running an image-processing service should treat image metadata as untrusted input - the file that stalls a server can be smaller than a typical thumbnail. Until the update is in place, services that accept uploads can limit accepted image dimensions or reject files with unusually large EXIF blocks.