CVE-2026-68539: Fulgur Denial of Service Vulnerability

HIGH
Advisory Identifier: GHSA-vw2v-g4x7-xcqg
CVSS 7.5
CWE-400 CWE-770
Published
Advisory Summary

CVE-2026-68539 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 allows unbounded string-set value accumulation causes memory/cpu exhaustion (denial of service). Remediation is available by upgrading affected packages to version 0.28.0.

CVE-2026-68539 at a Glance

CVE Identifier CVE-2026-68539
GHSA Identifier GHSA-vw2v-g4x7-xcqg
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-68539

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.28.0
Upgrade fulgur to 0.28.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-68539, 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.28.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.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: ```html <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. 2. **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](https://github.com/fulgur-rs/fulgur/security/advisories/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. ## Patches Fixed in **0.28.0**. The aggregate of each sink is now separately bounded: the resolved `string-set` store (`MAX_STRING_SET_STORE_BYTES`) and the retained per-node named-string snapshots (`MAX_STRING_SNAPSHOT_BYTES`). In addition, the snapshot is no longer recorded for `target-*`-only renders — those snapshots are consumed only by `bookmark-label: string(...)`, so recording them when no bookmarks are emitted was both wasted work and the only path that let inline `target-*` CSS enable the snapshot clone with no bookmark opt-in. The caps are kept far above any realistic document (short named strings, even thousands of them); past the cap a `string()` reference degrades to its last recorded value, which only occurs under adversarial input. ## 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. ## 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).

CVE-2026-68539 Affected Fulgur Versions

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

References

Frequently Asked Questions

What is CVE-2026-68539?
CVE-2026-68539 is a security vulnerability in Fulgur involving fulgur allows Unbounded string-set value accumulation causes memory/CPU exhaustion (denial of service) under CWE-400: Uncontrolled Resource Consumption.
Which Fulgur versions are affected?
Affected versions include releases prior to 0.28.0 across affected packages: fulgur.
What version fixes CVE-2026-68539?
Upgrading to 0.28.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.28.0. Upgrade your dependency to 0.28.0 or later.
What is the CVSS score of CVE-2026-68539?
CVE-2026-68539 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-68539?
CVE-2026-68539 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-68539?
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-vw2v-g4x7-xcqg",
  "modified" : "2026-11-25T19:46:45Z",
  "published" : "2026-11-25T19:46:45Z",
  "aliases" : [ "CVE-2026-68539" ],
  "summary" : "fulgur allows Unbounded string-set value accumulation causes memory/CPU exhaustion (denial of service)",
  "details" : "`fulgur` converts untrusted HTML/CSS into PDF, commonly on a server that\nprocesses input supplied by many tenants. In versions from 0.4.4 up to (but not\nincluding) the patched release, the CSS `string-set` named-string values\nresolved from a document were accumulated per element with no memory budget,\nletting a small crafted document amplify into large retained memory (and the CPU\nto copy it) — a denial of service.\n\nA `string-set` value is attacker-controlled: it is resolved from an element's\nown text (`content(text)`), from one of its attributes (`attr(...)`), or from a\nCSS string literal. fulgur accumulated these values per element in two unbounded\nplaces:\n\n1. **Store (default path).** For every element that matches a `string-set` rule,\n   fulgur pushes a copy of the resolved value into a store that is retained for\n   the whole render and cloned again downstream into a per-node lookup map. This\n   happens on the ordinary render path with no opt-in. A single literal reused\n   across many elements therefore expands from one copy in the input to N copies\n   in memory:\n\n   ```html\n   <style>\n     p { string-set: title \"……a large literal value……\" }\n   </style>\n   <p></p>  <!-- repeated N times -->\n   ```\n\n   The store grows to roughly `value_size × N` bytes (and ~3× that across the\n   downstream clones) from an input whose large part appears only once — a\n   breadth-unbounded amplification.\n\n2. **Per-node snapshot (bookmark / cross-reference path).** When PDF bookmarks\n   (`bookmark-label: string(...)`) or CSS `target-*` references are in play,\n   fulgur additionally cloned the full running `name → value` map at every\n   visited element so `string()` can resolve at that position. One large value\n   is then re-cloned at each of N following elements — an `O(N × value_size)`\n   retained-memory sink. This is the string counterpart of the counter-snapshot\n   sink fixed in\n   [GHSA-395p-pj7r-jm42](https://github.com/fulgur-rs/fulgur/security/advisories/GHSA-395p-pj7r-jm42);\n   that fix bounded the counter snapshots but did not bound this string twin.\n\nAn attacker able to submit HTML/CSS to a fulgur-based conversion service can\ntrigger memory and CPU exhaustion with a trivially small payload, denying\nservice to the host and any co-tenants.\n\n## Patches\n\nFixed in **0.28.0**. The aggregate of each sink is now separately bounded: the\nresolved `string-set` store (`MAX_STRING_SET_STORE_BYTES`) and the retained\nper-node named-string snapshots (`MAX_STRING_SNAPSHOT_BYTES`). In addition, the\nsnapshot is no longer recorded for `target-*`-only renders — those snapshots are\nconsumed only by `bookmark-label: string(...)`, so recording them when no\nbookmarks are emitted was both wasted work and the only path that let inline\n`target-*` CSS enable the snapshot clone with no bookmark opt-in. The caps are\nkept far above any realistic document (short named strings, even thousands of\nthem); past the cap a `string()` reference degrades to its last recorded value,\nwhich only occurs under adversarial input.\n\n## Workarounds\n\nUpgrade to 0.28.0 or later. If upgrading is not immediately possible, validate\nor constrain untrusted CSS — in particular a `string-set` rule with a large\nliteral (or `content(text)` / `attr(...)`) value matched by many elements —\nbefore passing HTML to fulgur, and bound the size and element count of accepted\ninput.\n\n## Attack Vector rationale\n\n`fulgur` performs no network I/O of its own; it renders HTML/CSS handed to it by\nthe embedding application. This advisory scores the crate independent of any\nspecific adopting program, so per the CVSS v3.1 User Guide §3.7 (scoring library\nvulnerabilities related to incoming data) the Attack Vector is assessed as\n**Network** for the reasonable worst-case deployment — a network-facing service\nthat renders untrusted, attacker-supplied HTML without user interaction. A\nconcrete system that receives the HTML in one component and passes it to fulgur\nin a separate component may assess a lower environmental Attack Vector (Local,\nper §3.10).",
  "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.4.4"
      }, {
        "fixed" : "0.28.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/fulgur-rs/fulgur/security/advisories/GHSA-vw2v-g4x7-xcqg"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-68539"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/fulgur-rs/fulgur/pull/582"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/fulgur-rs/fulgur/pull/584"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/fulgur-rs/fulgur/commit/1c4cdad003daef7c9dc6ef1362c50bcfaac13ea9"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/fulgur-rs/fulgur/commit/9248fbfd91a2ba8fc3dbd9e44ba681f52ed1ecd0"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/fulgur-rs/fulgur"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/fulgur-rs/fulgur/releases/tag/v0.29.0"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-400", "CWE-770" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-11-25T19:46:45Z",
    "nvd_published_at" : "2026-11-11T22:17:30Z"
  }
}