Home/Research/Post

GHSA-vw2v-g4x7-xcqg: fulgur allows Unbounded string-set value accumulation causes memory/CPU exhaustion (denial of service)

  • Severity: HIGH
  • CVE: CVE-2026-68539
  • Ecosystems: rust
  • Packages: fulgur

`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

“`

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…

Source: GitHub Security Advisories · 2026-11-25