CVE-2026-68540: fulgur denial of service in absolutely-positioned pseudo-element layout

CVE-2026-68540 · Severity: high · CVSS 7.5 · Published 2026-11-11

fulgur is a library that converts untrusted HTML and CSS documents into PDFs, typically running on servers that process user-supplied input from multiple tenants. A flaw in how the library processes the layout of absolutely-positioned pseudo-elements (like ::before and ::after) causes quadratic reprocessing of style information, allowing an attacker to craft malicious documents that consume excessive CPU and cause service denial.

Technologies: Fulgur-Rs Fulgur. Vendors: Fulgur-Rs.

Quick answers

Is CVE-2026-68540 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-68540 being exploited in the wild.
How severe is CVE-2026-68540?
High severity, with a CVSS score of 7.5, published 11 November 2026.
Which products and versions are affected?
Fulgur-Rs Fulgur 0.6.0 to before 0.33.0.
Is there a fix for CVE-2026-68540?
Yes: fixed in 0.33.0. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2026-68540 attacked?
It is attacked over the network, in a software library.
Am I affected by CVE-2026-68540?
Check whether you run Fulgur-Rs Fulgur at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • Fixed in: 0.33.0

Technical details

The vulnerability exists in the `cb_padding_box` function within the positioned.rs module, which was unnecessarily calling `extract_block_style()` to obtain border widths during containing-block resolution for absolutely-positioned pseudo-elements. This full style extraction triggered cloning and iteration of `box-shadow` lists as a side effect, and the containing-block resolution walk multiplied this processing across ancestors for each affected pseudo-element. An attacker can provide a document with many absolutely-positioned ::before/::after pseudo-elements whose ancestors have complex box-shadow properties, causing quadratic computational complexity and denial of service.

Affected products

  • fulgur-rs fulgur 0.6.0 to before 0.33.0

Timeline

  • 2026-11-11: disclosed

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.