CVE-2026-136756
Received Received - Intake

Heap Buffer Overflow in Text::Minify::XS Perl Module

Vulnerability report for CVE-2026-136756, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-12-06

Last updated on: 2026-12-06

Assigner: CPANSec

Description

Text::Minify::XS versions from 0.3.0 before 0.7.10 for Perl have a heap buffer overflow in minify on malformed UTF-8 when utf8 warnings are disabled. Text::Minify::XS removes indentation and trailing whitespace from multi-line text. With utf8 warnings disabled in the calling scope, a malformed byte decodes to a replacement character that takes more bytes to encode than were read, overflowing the output buffer, which is sized to the input. minify_utf8 is an alias for minify. The fix for CVE-2026-7040 in version 0.7.8 rejects malformed UTF-8 only when perl reports a decoding error, which it does only when utf8 warnings are enabled. An application that minifies untrusted text with utf8 warnings disabled, for example under "no warnings", allows heap corruption and a crash.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-12-06
Last Modified
2026-12-06
Generated
2026-12-06
AI Q&A
2026-12-06
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 3 associated CPEs
Vendor Product Version / Range
robrwo text_minify_xs to 0.7.10 (exc)
robrwo text_minify_xs 0.7.8
robrwo text_minify_xs 0.7.10

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-122 A heap overflow condition is a buffer overflow, where the buffer that can be overwritten is allocated in the heap portion of memory, generally meaning that the buffer was allocated using a routine such as malloc().

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability allows heap corruption in Perl applications using Text::Minify::XS versions 0.3.0 to 0.7.9 when processing malformed UTF-8 input with utf8 warnings disabled, potentially causing crashes or undefined behaviour.

Detection Guidance

Check Perl module versions with:

Bash
perl -MText::Minify::XS -e 'print "$Text::Minify::XS::VERSION\n"'

If output is between 0.3.0 and 0.7.9, the system is exposed. Verify utf8 warning settings in calling code by inspecting Perl scripts for 'no warnings' or 'use warnings qw(!utf8)' directives.

Impact Analysis

Successful exploitation could crash the Perl interpreter process handling untrusted text, leading to denial of service for applications relying on Text::Minify::XS.

Compliance Impact

No direct compliance implications are established by the supplied evidence; however, service disruption from crashes may indirectly affect availability requirements in standards addressing system resilience.

Mitigation Strategies
  • Upgrade Text::Minify::XS to version 0.7.10 or later.
  • Review Perl scripts using the module to ensure utf8 warnings are not disabled for untrusted input processing.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-136756. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...