CVE-2026-116740

libcss through 0.9.2 NULL Pointer Dereference via Media-Query Parser

Published Oct 26, 2026 CVSS 4.0 · 7.1 High EPSS < 1% KEV · Not listed
Description
libcss through 0.9.2 contains a NULL pointer dereference vulnerability in mq_parse_media_query() that allows remote attackers to crash consumers by supplying media lists ending in a comma. Attackers can serve a stylesheet whose @media or @import media list has a trailing comma, causing NetSurf or other parsers to crash.

Analysis

AI-generated

Technical impact

The vulnerability is a NULL pointer dereference in libcss’s mq_parse_media_query function. When an @media or @import rule contains a media list that ends with a trailing comma, the parser dereferences an uninitialized pointer and crashes. An attacker can feed such a stylesheet to a consumer of libcss, causing a crash and a denial‑of‑service.

Affected Systems

libcss, used by the Netsurf browser and other consumers, is vulnerable in all releases up to and including 0.9.2. Any application that parses media lists with a trailing comma via this library is affected.

Risk and Exploitability

The CVSS score of 7.1 indicates moderate severity for a remote denial‑of‑service. Based on the description, it is inferred that the exploit does not require authentication or special privileges; a remote attacker can trigger a crash simply by delivering the malicious stylesheet. The EPSS score is unavailable, and the vulnerability is not yet listed in the KEV catalog, but the lack of a public exploit means the risk is realistic and should be mitigated.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade libcss to a version newer than 0.9.2 that includes the media‑list parsing fix
  • If an upgrade is not possible, validate or sanitize media lists before handing them to libcss, removing any trailing commas to prevent the dereference
  • Implement monitoring and logging for unexpected crashes and consider quarantining affected instances to mitigate denial‑of‑service impacts

Generated by OpenCVE AI on October 27, 2026 at 08:09 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Netsurf-browser
Netsurf-browser libcss
Vendors & Products Netsurf-browser
Netsurf-browser libcss
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description libcss through 0.9.2 contains a NULL pointer dereference vulnerability in mq_parse_media_query() that allows remote attackers to crash consumers by supplying media lists ending in a comma. Attackers can serve a stylesheet whose @media or @import media list has a trailing comma, causing NetSurf or other parsers to crash.
Title libcss through 0.9.2 NULL Pointer Dereference via Media-Query Parser
Weaknesses CWE-476
References
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H'}

cvssV4_0

{'score': 7.1, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Oct 31, 2026, 2:01 AM
Reserved
Oct 26, 2026, 8:23 PM
Status
Deferred
Published
Oct 26, 2026, 10:16 PM
Modified
Oct 31, 2026, 3:17 AM
Severity
Moderate
Public date
Oct 26, 2026, 9:52 PM