All vulnerabilities

crates.io

CVE-2026-68539

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

Severity
High 7.5
Published
25 Nov 2026
Last changed
25 Nov 2026
Added to UpHeron
25 Nov 2026
Fixed in
0.28.0
Weakness
Uncontrolled resource consumption (CWE-400)Allocation without limits (CWE-770)
Attack
Over the network · No login needed · No user action needed
Attacker can
Take it down
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Also known as
GHSA-vw2v-g4x7-xcqg
Sources
OSV.dev and GitHub

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:

  • 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.
From the GitHub Advisory Database, CC BY 4.0. Shortened; the full text is there.

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.

Workarounds as given by the GitHub Advisory Database, CC BY 4.0.

Affected software

SoftwareAffected versions
fulgurcrates.io · osv:crates.io:fulgur
  • From 0.4.4 before 0.28.0

About fulgur

Downloads in the last 90 days (crates.io)
8,491crates.io, 25 Nov 2026
Total downloads (crates.io)
12,549crates.io, 25 Nov 2026

This is the only vulnerability in fulgur in our list.

References