Skip to content

Fulgur: Non-painting replaced elements amplify to thousands of blank PDF pages (denial of service)

High severity GitHub Reviewed Published Jul 4, 2026 in fulgur-rs/fulgur • Updated Sep 17, 2026

Package

cargo fulgur (Rust)

Affected versions

< 0.26.0

Patched versions

0.26.0

Description

fulgur converts untrusted HTML/CSS into PDF, commonly on a server that
processes input supplied by many tenants. In versions prior to 0.26.0, a
childless box that resolves to a pathologically tall height was amplified into
thousands of blank PDF pages, even when it produces no visible output.

The childless-collapse defense that would normally collapse such a box was gated
by a tag-only "replaced content" check, so any non-painting replaced element
bypassed it, including:

  • an unresolved src (the common offline-first case),
  • a visibility:hidden image,
  • an undecodable image format, and
  • an empty <svg>.

A trailing-sibling variant of the same gap was also open. A few bytes of HTML
therefore amplified into roughly MAX_PAGES (10,000) blank pages; the renderer
allocates and runs a per-page loop over them, producing CPU and memory
exhaustion. An attacker able to submit HTML to a fulgur-based conversion service
can trigger this with a trivially small payload, denying service to the host and
any co-tenants.

Patches

Fixed in 0.26.0 (PR #575). The tag-only gate was removed so that any
pathologically tall childless box collapses regardless of whether it is a
replaced element, closing the missing-src, visibility:hidden,
undecodable-format, and empty-<svg> vectors at once, along with the
trailing-sibling variant.

Workarounds

Upgrade to 0.26.0 or later. If upgrading is not immediately possible, validate
or constrain untrusted CSS (in particular very large height / vh on
elements) before passing HTML to fulgur.

Related

Versions prior to 0.19.0 additionally lacked any page-count cap, allowing an
unbounded (rather than 10,000-page) variant of this amplification and a
non-terminating loop on non-finite heights. That earlier variant is tracked
separately as GHSA-j5cx-ph8g-95v3.

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

References

@mitsuru mitsuru published to fulgur-rs/fulgur Jul 4, 2026
Published to the GitHub Advisory Database Sep 17, 2026
Reviewed Sep 17, 2026
Last updated Sep 17, 2026

Severity

High

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

EPSS score

Exploit Prediction Scoring System (EPSS)

This score estimates the probability of this vulnerability being exploited within the next 30 days. Data provided by FIRST.
(47th percentile)

Weaknesses

Uncontrolled Resource Consumption

The product does not properly control the allocation and maintenance of a limited resource. Learn more on MITRE.

CVE ID

CVE-2026-68537

GHSA ID

GHSA-4rf6-qx84-q9fv

Source code

Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.