NIST deprecates RSA-2048 from 2030. Find every one of them before attackers do.
🦀
🦀 crates.io
Not in CISA KEV
HIGH severity

CVE-2026-68538 — fulgur

HIGHFix: fulgur-rs/fulgur@ebc7569

CVE-2026-68538 is a high-severity (CVSS 7.5) Uncontrolled Resource Consumption vulnerability in fulgur. A fix is available for fulgur — see the affected versions and patch details below.

fulgur: Unbounded counters() expansion in generated content causes memory/CPU exhaustion (denial of service)

Also known asGHSA-395p-pj7r-jm42
Published
Updated
Affected
1 pkg
Patched
1 / 1
Exploits
None indexed
Exploitation data as of Dec 4, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

Exploitation Status

No confirmed exploitation observed yet

  • CISA assesses this as automatable — exploitation doesn’t require manual, per-target effort, which raises the odds of mass scanning and opportunistic attacks.
  • CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.

Exploitation and automatability from CISA’s SSVC triage for CVE-2026-68538.

EPSS Exploitation Probability

via FIRST.org ↗
0.6%probability of exploitation in next 30 days
Lower Risk0.00%
Lower risk than most CVEs52th percentile — riskier than 52% of all scored CVEsHighest risk
0.14%0.47%0.80%1.14%0.6%0.6%Dec 26Dec 26

Probability of exploitation in the next 30 days, from FIRST.org EPSS.

How urgent is this, really

Where this sits among everything scored

Real-World Exposure

1 pkg affected
🦀fulgur

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects crates.io packages — download data is not available via public APIs for these ecosystems.

Description

fulgur converts untrusted HTML/CSS into PDF, commonly on a server that processes input supplied by many tenants. In versions from 0.15.0 up to (but not including) the patched release, resolving the CSS counters(name, sep) function in generated content was bounded neither in the size of a single expansion nor in the aggregate work across an element tree.

A CSS counter chain grows by one entry per counter-reset, and per CSS Lists 3 §4.4 a reset is scoped to the originating element, its descendants, and its following siblings — so among N sibling elements the i-th element's active chain has about i entries. counters(name, sep) joins that chain with an attacker-controlled separator string, and each matching element emits its own resolved copy. A document such as:

<style>
  div { counter-reset: x }
  div::before { content: counters(x, "……long separator……") }
</style>
<div></div>  <!-- repeated many times -->

therefore expands to roughly separator_len × N² / 2 bytes of generated content from a few kilobytes of input — a super-linear amplification. The same counters() resolution feeds three sinks: the generated CSS injected for ::before / ::after, the PDF outline built from bookmark-label, and the per-node counter-state snapshots retained during resolution (the last is an O(N²) memory sink even when it produces no visible output). An attacker able to submit HTML/CSS to a fulgur-based conversion service can trigger CPU and memory exhaustion with a trivially small payload, denying service to the host and any co-tenants.

Patches

Fixed in 0.27.0. Each single counters() expansion is capped (MAX_COUNTER_CHAIN_BYTES), and the aggregate of each sink — the generated CSS (MAX_GENERATED_CSS_BYTES), the outline labels (MAX_OUTLINE_LABEL_BYTES), and the retained per-node counter snapshots (MAX_COUNTER_SNAPSHOT_ENTRIES) — is separately bounded, so a crafted document can no longer amplify a small input into unbounded output or memory. The caps are far above any realistic document.

Workarounds

Upgrade to 0.27.0 or later. If upgrading is not immediately possible, validate or constrain untrusted CSS (in particular counter-reset on many sibling elements combined with a long counters() separator) before passing HTML to fulgur.

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

Resources

Affected Packages

1 total 1 fixed
EcosystemPackageVulnerable rangeFix
🦀crates.iofulgur≥ 0.15.0&&< 0.27.00.27.0cargo update -p fulgur --precise 0.27.0

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for fulgur, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.

  2. Fix

    Update fulgur to 0.27.0 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2026-68538 is resolved across your whole dependency graph.

  3. Workarounds

    Cap what an attacker can consume: apply request size, rate and timeout limits in front of the affected component, and run it with memory and CPU limits so exhaustion degrades one worker rather than the whole service.

Frequently Asked Questions

`fulgur` converts untrusted HTML/CSS into PDF, commonly on a server that processes input supplied by many tenants. In versions from 0.15.0 up to (but not including) the patched release, resolving the CSS `counters(name, sep)` function in generated content was bounded neither in the size of a single expansion nor in the aggregate work across an element tree. A CSS counter chain grows by one entry per `counter-reset`, and per CSS Lists 3 §4.4 a reset is scoped to the originating element, its descendants, and its following siblings — so among N sibling elements the i-th element's active chain ha
O3 Security · Impact-Aware SCA

Is CVE-2026-68538 in your dependencies?

Find it across crates.io, including transitive dependencies.

CVE-2026-68538: fulgur — Fixed in 0.27.0