---
id: "CVE-2026-129857"
page: "https://infrastack.ai/live/CVE-2026-129857"
kind: "vulnerability"
aliases: ["CVE-2026-129857"]
title: "jxrlib: crafted JPEG XR file overflows heap while decoding"
severity: "high"
cvss: 8.5
epss: null
exploited: false
status: "open"
category: "package"
products: []
ecosystems: []
tags: ["c", "image-decoding", "jpeg-xr", "jxrlib", "package"]
not_affected_if: ["no-jxr-decoding", "trusted-input-only"]
published_at: "2026-11-16T15:17:23+00:00"
first_seen_at: "2026-11-16T15:37:52+00:00"
updated_at: "2026-11-16T15:40:13+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-129857", "first_seen_at": "2026-11-16T15:37:52+00:00"}]
exploit_sources: []
---

# jxrlib: crafted JPEG XR file overflows heap while decoding

Link for people: https://infrastack.ai/live/CVE-2026-129857 (this .md is for agents)

jxrlib is a library for decoding JPEG XR images, and a malformed file with a huge metadata count makes it allocate too little memory and then write past the buffer. An attacker who gets a crafted image into an application that decodes it can corrupt heap memory, which may allow code execution.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- Check whether the project depends on jxrlib or the mircomir jxrlib fork, for example with `grep -ri jxrlib` across manifests and vendored source
- Confirm which version is in use; the sources do not give a version check command

## Fix

- Microsoft jxrlib: unknown (sources do not state a fixed version)
- mircomir jxrlib fork: `1.3.1`

## Timeline

- 2026-11-16T15:37:52+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-129857

## Documents

- [advisory] Third-party advisory: www.vulncheck.com https://www.vulncheck.com/advisories/microsoft-jxrlib-through-1.1-heap-buffer-overflow-via-readbinarydata-integer-overflow
- [fix] Patch: github.com https://github.com/mircomir/jxrlib/commit/cb97e6debb5019cfa774f314c230629da05fc746

## From the sources

Microsoft jxrlib through 1.1 and the mircomir jxrlib fork before 1.3.1 contain a heap buffer overflow in ReadBinaryData() in jxrgluelib/JXRMeta.c caused by integer overflow of the metadata count. Attackers can supply a JPEG XR file with a count of 0xFFFFFFFE or 0xFFFFFFFF, wrapping PKAlloc(uCount + 2) to an undersized buffer that the following file read overflows, corrupting heap memory in decoding applications.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
