Preliminary notice: published right away from the original source data, without editorial write-up. It will shortly be replaced by a written and reviewed version.
Summary
CVE-2026-68539: high-severity vulnerability (CVSS 7.5) in fulgur.
What happened
Original description from the source: `fulgur` converts untrusted HTML/CSS into PDF, commonly on a server that processes input supplied by many tenants. In versions from 0.4.4 up to (but not including) the patched release, the CSS `string-set` named-string values resolved from a document were accumulated per element with no memory budget, letting a small crafted document amplify into large retained memory (and the CPU to copy it) — a denial of service. A `string-set` value is attacker-controlled: it is resolved from an element's own text (`content(text)`), from one of its attributes (`attr(...)`), or from a CSS string literal. fulgur accumulated these values per element in two unbounded places: 1. **Store (default path).** For every element that matches a `string-set` rule, fulgur pushes a copy of the resolved value into a store that is retained for the whole render and cloned again downstream into a per-node lookup map. This happens on the ordinary render path with no opt-in. A single literal reused across many elements therefore expands from one copy in the input to N copies in memory: ```html <style> p { string-set: title "……a large literal value……" } </style> <p></p> <!-- repeated N times --> ``` The store grows to roughly `value_size × N` bytes (and ~3× that across the downstream clones) from an input whose large part appears only once — a breadth-unbounded amplification. 2. **Per-node snapshot (bookmark / cross-reference path).** When PDF bookmarks (`bookmark-label: string(...)`) or CSS `target-*` references are in play, fulgur additionally cloned the full running `name → value` map at every visited element so `string()` can resolve at that position. One large value is then re-cloned at each of N follo…
Why it matters
High severity, CVSS 7.5.
Affected products and versions
fulgur >= 0.4.4, < 0.28.0 (fixed in 0.28.0)
| Product | Versions | Fixed in |
|---|---|---|
| fulgur | >= 0.4.4, < 0.28.0 | 0.28.0 |
Action recommended by the source
Upgrade to a fixed version: 0.28.0.
Fixed in: 0.28.0
Sources and references
- https://github.com/advisories/GHSA-vw2v-g4x7-xcqg — GHSA
- https://github.com/fulgur-rs/fulgur/security/advisories/GHSA-vw2v-g4x7-xcqg — GHSA
- https://nvd.nist.gov/vuln/detail/CVE-2026-68539 — GHSA
- https://github.com/fulgur-rs/fulgur/pull/582 — GHSA
- https://github.com/fulgur-rs/fulgur/pull/584 — GHSA
- https://github.com/fulgur-rs/fulgur/commit/1c4cdad003daef7c9dc6ef1362c50bcfaac13ea9 — GHSA
- https://github.com/fulgur-rs/fulgur/commit/9248fbfd91a2ba8fc3dbd9e44ba681f52ed1ecd0 — GHSA
- https://github.com/fulgur-rs/fulgur/releases/tag/v0.29.0 — GHSA
Weaknesses (CWE): CWE-400, CWE-770
Relevant change history
Published
Preliminary advisory published.