Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. fulgur
  4. ›
  5. CVE-2026-68539

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

November 25, 2026

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:
<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.

  1. 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; 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.

References

  • github.com/advisories/GHSA-vw2v-g4x7-xcqg
  • github.com/fulgur-rs/fulgur/commit/1c4cdad003daef7c9dc6ef1362c50bcfaac13ea9
  • github.com/fulgur-rs/fulgur/commit/9248fbfd91a2ba8fc3dbd9e44ba681f52ed1ecd0
  • github.com/fulgur-rs/fulgur/pull/582
  • github.com/fulgur-rs/fulgur/pull/584
  • github.com/fulgur-rs/fulgur/releases/tag/v0.29.0
  • github.com/fulgur-rs/fulgur/security/advisories/GHSA-vw2v-g4x7-xcqg
  • nvd.nist.gov/vuln/detail/CVE-2026-68539

Code Behaviors & Features

Detect and mitigate CVE-2026-68539 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 0.4.4 before 0.28.0

Fixed versions

  • 0.28.0

Solution

Upgrade to version 0.28.0 or above.

Impact 7.5 HIGH

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

Learn more about CVSS

Weakness

  • CWE-400: Uncontrolled Resource Consumption
  • CWE-770: Allocation of Resources Without Limits or Throttling

Source file

cargo/fulgur/CVE-2026-68539.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Thu, 26 Nov 2026 12:17:15 +0000.