Intel

AIKIDO-2026-306400

libheif-js is vulnerable to Out-of-bounds Read

Out-of-bounds ReadGHSA-4fhr-mmvh-8j4m Published 6 days ago

75

High Risk

This Affects:

JSlibheif-js
1.17.1 - 1.18.0
Fixed in 1.18.2
Are you affected? Scan for Free

TL;DR

The embedded libheif build selects its YCbCr-to-RGB color-conversion routine using the reported bits-per-pixel. For uncompressed (unci) images with an odd component bit depth, the wide 16-bit conversion path is chosen for data stored one byte per pixel, miscomputing strides. Decoding such an image causes a heap out-of-bounds read that can crash the process or disclose adjacent heap memory. The fix selects the conversion routine using the storage bit depth.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your application decodes untrusted or externally influenced uncompressed (unci) HEIF images with an odd component bit depth.

Background info

libheif-js is vulnerable to Out-of-bounds Read in versions 1.17.1 - 1.18.0.

How to fix this

Upgrade the libheif-js library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform