Skip to main content

CSS::Minifier::XS EUVDEUVD-2026-40180

| CVE-2026-13593 MEDIUM
Memory Leak (CWE-401)
2026-06-29 CPANSec GHSA-89gv-4m9m-97p2
6.5
CVSS 3.1 · Vendor: CPANSec
View

Attack ChainAIDerived

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

  1. Access
    Identify web endpoint calling CSS::Minifier::XS
  2. Delivery
    Craft CSS payload of only comments/whitespace
  3. Exploit
    Submit repeated requests to minify()
  4. Execution
    Trigger unreleased memory allocation per request
  5. Persist
    Accumulate heap exhaustion in Perl worker
  6. Impact
    Process crash or memory disclosure

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Resource cleanup, leak prevention
Exploitation Conditions

Exploitation requires that the target application passes user-controlled or externally-sourced CSS input directly to the CSS::Minifier::XS minify() function, and that the input consists entirely of CSS comments and/or whitespace (i.e., no surviving CSS tokens after minification). Services that sanitize, validate, or pre-filter CSS before minification, or that only process trusted internal assets, are not exploitable via this path. Persistent Perl processes (mod_perl, PSGI servers like Starman or Twiggy) are significantly more vulnerable than one-shot scripts because the leak accumulates across requests. Authentication is not required by the module itself - the exposure surface is determined entirely by how the calling application gates access to the minify() function. The CVSS PR:N rating reflects that the module imposes no authentication; actual exploitability depends on whether the application exposes this code path to unauthenticated callers.

Impact

The provided CVSS 6.5 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N) warrants scrutiny on two metrics. First, I:L (integrity impact) is not well-supported by the description of a memory leak - no write primitive or data modification is described; this may be a scoring artefact. Second, A:N (no availability impact) is counterintuitive for a memory leak: repeated triggering against a persistent process would cause gradual memory exhaustion. The C:L (confidentiality) rating is plausible if leaked heap memory contains remnants of prior CSS processing or co-located sensitive strings. SSVC confirms exploitation=none and technical impact=partial, aligning with EPSS at the 15th percentile. Real-world risk is low-to-moderate for services that: (a) accept untrusted CSS input, (b) run long-lived Perl processes (e.g., mod_perl, Plack persistent servers), and (c) have not upgraded to 0.14. Batch build pipelines or one-shot scripts that restart per job are largely immune. The CVSS I:L metric appears unsubstantiated - defenders should not treat this as an integrity-compromising flaw without vendor clarification.

Exploit ScenarioDerived

An attacker targeting a web application that accepts user-submitted CSS for server-side minification (e.g., a theme builder, CSS optimizer API, or similar) submits repeated HTTP requests containing CSS documents composed entirely of block comments (/* ... */) or whitespace. Each call to minify() leaks the input buffer without freeing it. Over many requests, the Perl worker process's memory footprint grows until the OS kills it or it becomes unresponsive, causing a denial of service. No public exploit code exists, but the triggering payload is trivially constructable.

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

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

Alert me

AnalysisAIv1 – Jul 22, 2026

Memory leak in CSS::Minifier::XS (Perl CPAN module by gtermars) before version 0.14 allows unauthenticated remote attackers to trigger unreleased memory by submitting CSS documents composed entirely of removable content - comments and whitespace. When the minify() function processes such input and the entire document is consumed by the minification pass, the underlying XS (C extension) layer fails to release the allocated memory, satisfying CWE-401. The Information Disclosure tag and C:L CVSS rating suggest leaked heap contents may expose sensitive in-process data, though the more immediate risk is incremental memory exhaustion in long-running web services. No public exploit has been identified at time of analysis, and EPSS at 0.24% (15th percentile) reflects minimal observed exploitation interest.

RemediationAI

Upgrade to CSS::Minifier::XS 0.14 or later via CPAN ('cpan CSS::Minifier::XS' or 'cpanm CSS::Minifier::XS') - this is the vendor-released patch per the changelog at https://metacpan.org/release/GTERMARS/CSS-Minifier-XS-0.14/changes and confirmed by the oss-security advisory at https://seclists.org/oss-sec/2026/q2/1067. For SUSE-packaged deployments, apply the distribution's updated perl-CSS-Minifier-XS package once available through the standard update channel. If immediate upgrade is not possible and the service accepts user-supplied CSS, apply input validation at the application layer to reject CSS documents that contain only whitespace and comment tokens before passing them to minify() - this eliminates the triggering condition with no functional impact on legitimate CSS. Alternatively, wrap calls to minify() so that empty or whitespace-only inputs are returned as-is without invoking the XS function. For persistent long-running processes, periodic worker restart (e.g., SIGHUP-based recycling in mod_perl or Starman) can bound the impact of the leak until patching is completed.

Affected VersionsENISA

CSS::Minifier::XS 0 <0.14

Affected Packages

euvd css_minifier_xs fix: 0.14

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

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

Technical ContextAI · show details

CSS::Minifier::XS is a Perl XS module (cpe:2.3:a:gtermars:css::minifier::xs:*) that wraps a C implementation for high-performance CSS whitespace and comment stripping. XS modules allocate memory in C and must manually manage it; the root cause (CWE-401, Missing Release of Memory after Effective Lifetime) is a code path in the minify() function that is reached only when every byte of the input document is elided - i.e., the document consists solely of CSS comments (/* ... */) and/or whitespace. In this edge case the function's cleanup logic appears to be skipped, leaving the input buffer allocated. Because this is an XS extension, the leak occurs in the C heap and is not subject to Perl's garbage collector. The module is typically embedded in Perl web frameworks or asset-pipeline tooling that accept user-supplied or externally-sourced CSS, which is the avenue for network exposure.

Know when Css 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 (CPANSec) PRIMARY 6.5 MEDIUM
AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
vuln.today AI 6.5 MEDIUM

Memory leak impacts availability (A:L) and may expose heap data (C:L); no integrity impact is supported by description, so I:N overrides provided I:L.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N
SUSE MEDIUM

Primary rating from Vendor (CPANSec).

CVSS VectorVendor: CPANSec

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
None

Lifecycle Timeline

2
Patch available
Jun 29, 2026 - 22:02 EUVD
CVE Published
Jun 29, 2026 - 19:37 cve.org
UNKNOWN (no severity yet)

DescriptionCVE.org

CSS::Minifier::XS versions before 0.14 for Perl have a memory leak when the entire document is minified away.

The minify function has a memory leak when processing a document containing only characters to be removed, such as comments and whitespace.

Threat Intelligence Overview

EPSS Score
0.2%
Top 85% exploitable
Prevalence
Low
niche Perl CPAN module, limited to Perl CSS-processing applications
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor 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.2%
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
None
System Exposure· derived
Open
Automatable
Yes
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
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.

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
openSUSE Tumbleweed Fixed

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