CVE-2026-68538: Fulgur Denial of Service Vulnerability

HIGH
Advisory Identifier: GHSA-395p-pj7r-jm42
CVSS 7.5
CWE-400
Published
Advisory Summary

CVE-2026-68538 is a HIGH (CVSS 7.5) denial of service vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting Fulgur libraries in the crates.io ecosystem. The issue involves fulgur is vulnerable to denial of service via unbounded css counters() expansion. Remediation is available by upgrading affected packages to version 0.27.0.

CVE-2026-68538 at a Glance

CVE Identifier CVE-2026-68538
GHSA Identifier GHSA-395p-pj7r-jm42
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-400: Uncontrolled Resource Consumption
Affected Product Fulgur
Package Ecosystem crates.io
Published Date
Last Updated

Security Impact

CVSS: 7.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability High (A:H)

How to Fix CVE-2026-68538

To remediate this vulnerability, upgrade all affected Fulgur dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

fulgur fixed: 0.27.0
Upgrade fulgur to 0.27.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for fulgur

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-68538, inspect your project dependencies for Fulgur:

inspect dependencies for fulgur

Analyze the terminal output to locate any version of Fulgur in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.27.0), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-400: Uncontrolled Resource Consumption, where the product does not properly control the allocation and maintenance of a limited resource. In Fulgur, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

`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: ```html <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 - Fixed in release: https://github.com/fulgur-rs/fulgur/releases/tag/v0.27.0

CVE-2026-68538 Affected Fulgur Versions

1 component(s)
Fixed Versions:
0.27.0
Product / Package Ecosystem Affected Versions Fixed Version
fulgur
crates.io
≥ 0.15.0
< 0.27.0
0.27.0

References

Frequently Asked Questions

What is CVE-2026-68538?
CVE-2026-68538 is a security vulnerability in Fulgur involving Fulgur is vulnerable to denial of service via unbounded CSS counters() expansion under CWE-400: Uncontrolled Resource Consumption.
Which Fulgur versions are affected?
Affected versions include releases prior to 0.27.0 across affected packages: fulgur.
What version fixes CVE-2026-68538?
Upgrading to 0.27.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is fulgur affected?
Yes, fulgur is affected in releases prior to 0.27.0. Upgrade your dependency to 0.27.0 or later.
What is the CVSS score of CVE-2026-68538?
CVE-2026-68538 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2026-68538?
CVE-2026-68538 is classified under CWE-400: Uncontrolled Resource Consumption (The product does not properly control the allocation and maintenance of a limited resource.).
How can I check crates.io dependencies for CVE-2026-68538?
Run the dependency tree command: 'inspect dependencies for fulgur'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-395p-pj7r-jm42",
  "modified" : "2026-12-04T21:13:48Z",
  "published" : "2026-12-04T21:13:48Z",
  "aliases" : [ "CVE-2026-68538" ],
  "summary" : "Fulgur is vulnerable to denial of service via unbounded CSS counters() expansion",
  "details" : "`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.\n\nA 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:\n\n```html\n<style>\n  div { counter-reset: x }\n  div::before { content: counters(x, \"……long separator……\") }\n</style>\n<div></div>  <!-- repeated many times -->\n```\n\ntherefore 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.\n\n## Patches\n\nFixed in **0.27.0**. Each single `counters()` expansion is capped\n(`MAX_COUNTER_CHAIN_BYTES`), and the aggregate of each sink — the generated CSS\n(`MAX_GENERATED_CSS_BYTES`), the outline labels (`MAX_OUTLINE_LABEL_BYTES`), and\nthe retained per-node counter snapshots (`MAX_COUNTER_SNAPSHOT_ENTRIES`) — is\nseparately 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.\n\n## Workarounds\n\nUpgrade 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.\n\n## Attack Vector rationale\n\n`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).\n\n## Resources\n\n- Fixed in release: https://github.com/fulgur-rs/fulgur/releases/tag/v0.27.0",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "fulgur"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.15.0"
      }, {
        "fixed" : "0.27.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/fulgur-rs/fulgur/security/advisories/GHSA-395p-pj7r-jm42"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-68538"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/fulgur-rs/fulgur/commit/ebc75691ad368f1c1a211543313b04da2af466d6"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/fulgur-rs/fulgur"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/fulgur-rs/fulgur/releases/tag/v0.27.0"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-400" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-12-04T21:13:48Z",
    "nvd_published_at" : "2026-11-11T22:17:30Z"
  }
}