HIGH · CVSS 3.1 7.5 EPSS 0.7% · 48th percentile CWE-400CWE-770

CVE-2026-68539: fulgur allows Unbounded string-set value accumulation causes memory/CPU exhaustion (denial of service)

Published 2026-11-25 · Updated 2026-11-25 · Also known as GHSA-vw2v-g4x7-xcqg

Summary

The fulgur library is vulnerable to memory and CPU exhaustion due to unbounded string accumulation in CSS string-set properties. Developers using fulgur to render untrusted HTML/CSS should upgrade to version 0.28.0 or later to apply necessary memory usage bounds.

Who is affected

Affected deployments are those that accept untrusted HTML/CSS for PDF conversion, such as multi-tenant document generation services. Attackers can trigger a denial of service by submitting small, specially crafted CSS payloads that cause exponential memory growth via string-set amplification, impacting both the host and co-tenants.

Exploitability

The vulnerability carries a high CVSS base score of 7.5, reflecting that it is exploitable over the network with low attack complexity and no required user interaction. While the current EPSS score is 0.007, indicating low active threat intelligence, the potential for simple, automated DoS attacks on exposed services remains significant.

Remediation

How to check your project

Automated analysis of the published advisory data, generated 2026-11-25. Not human-reviewed; verify against the official advisory. How this works.

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
crates.io fulgur >= 0.4.4, < 0.28.0 0.28.0 cargo update -p fulgur --precise 0.28.0

CVSS 3.1 vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Attack vectorNetwork
Attack complexityLow
Privileges requiredNone
User interactionNone
ScopeUnchanged
ConfidentialityNone
IntegrityNone
AvailabilityHigh

FAQ

Does this vulnerability require the attacker to have privileged access?

No, the vulnerability is exploitable by an unauthenticated remote user submitting untrusted HTML/CSS to the service.

Are there any specific CSS properties I should avoid to prevent this?

The issue is primarily driven by the 'string-set' property when used with large literals, 'content(text)', or 'attr()' values that are applied to a high volume of elements.

Is this vulnerability currently being exploited in the wild?

There is no evidence of active exploitation documented; CISA KEV status is no.

Original advisory description
`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 following elements - an `O(N × value_size)` retained-memory sink. This is the string counterpart of the counter-snapshot sink fixed in [GHSA-395p-pj7r-jm42](https://github.com/fulgur-rs/fulgur/security/advisories/GHSA-395p-pj7r-jm42); that fix bounded the counter snapshots but did not bound this string twin. An attacker able to submit HTML/CSS to a fulgur-based conversion service can trigger memory and CPU exhaustion with a trivially small payload, denying service to the host and any co-tenants. ## Patches Fixed in **0.28.0**. The aggregate of each sink is now separately bounded: the resolved `string-set` store (`MAX_STRING_SET_STORE_BYTES`) and the retained per-node named-string snapshots (`MAX_STRING_SNAPSHOT_BYTES`). In addition, the snapshot is no longer recorded for `target-*`-only renders - those snapshots are consumed only by `bookmark-label: string(...)`, so recording them when no bookmarks are emitted was both wasted work and the only path that let inline `target-*` CSS enable the snapshot clone with no bookmark opt-in. The caps are kept far above any realistic document (short named strings, even thousands of them); past the cap a `string()` reference degrades to its last recorded value, which only occurs under adversarial input. ## Workarounds Upgrade to 0.28.0 or later. If upgrading is not immediately possible, validate or constrain untrusted CSS - in particular a `string-set` rule with a large literal (or `content(text)` / `attr(...)`) value matched by many elements - before passing HTML to fulgur, and bound the size and element count of accepted input. ## Attack Vector rationale `fulgur` performs no network I/O of its own; it renders HTML/CSS handed to it by the embedding application. This advisory scores the crate independent of any specific adopting program, so per the CVSS v3.1 User Guide §3.7 (scoring library vulnerabilities related to incoming data) the Attack Vector is assessed as **Network** for the reasonable worst-case deployment - a network-facing service that renders untrusted, attacker-supplied HTML without user interaction. A concrete system that receives the HTML in one component and passes it to fulgur in a separate component may assess a lower environmental Attack Vector (Local, per §3.10).

References

Source records: GHSA-vw2v-g4x7-xcqg (OSV.dev) · EPSS by FIRST, 2026-11-25.