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.
Severity (CVSS)
| Base score | 7.1 |
|---|---|
| Severity | High |
| Version | CVSS 4.0 |
| 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 |
| Provided by | CNA |
Weaknesses
- CWE-476 — NULL Pointer Dereference
Affected products
| Vendor | Product | Versions |
|---|---|---|
| netsurf-browser | libcss | 0 to <=0.9.2 [affected] |
References
- https://github.com/netsurf-browser/libcss/commit/006ffc4096040da13690abc380e5f828ec08284d (patch)
- https://github.com/netsurf-browser/libcss (product)
- https://github.com/netsurf-browser/libcss/blob/release/0.9.2/src/parse/mq.c#L984 (technical-description)
- https://hackmd.io/@haindpwn/libcss-media-list-null-deref (third-party-advisory)
- https://www.vulncheck.com/advisories/libcss-through-0.9.2-null-pointer-dereference-via-media-query-parser (third-party-advisory)
Assess this vulnerability
Compare your deployed product and version with the source record. Review vendor references for fixes and workarounds. A CVSS score describes technical severity; it does not establish that your systems are affected or that exploitation has occurred.
Browse all CVE security advisories · Symaro cybersecurity services
Generated from the official CVE List on 27 Oct 2026 07:01 UTC.