Skip to content

quick-xml 0.36 in fluree-doc-parse's Office readers has DoS advisories fixed only in 0.41 #2115

Open

Description

@bplatz

cargo audit reports RUSTSEC-2026-0194 and 0195 against quick-xml 0.36.2, which comes in through fluree-doc-parse's Office readers (fluree-doc-docx, fluree-doc-pptx, and in its current main also fluree-doc-ooxml and fluree-doc-xlsx). Both are fixed only in quick-xml 0.41.

  • 0194 (quadratic time checking a start tag for duplicate attribute names) is reachable: the readers iterate attributes() with the default check on, so a crafted .docx or .pptx given to fluree doc can spin the CPU.
  • 0195 (unbounded namespace declarations in NsReader) is not: doc-parse doesn't use NsReader.

The fix is in fluree-doc-parse, then a repin here:

  1. Move doc-parse to quick-xml 0.41. This is more than a version bump. In 0.41, BytesText::unescape() is gone and references like & arrive as separate Event::GeneralRef events. On doc-parse's main, six unescape calls and six Event::Text arms need rework, and each must handle GeneralRef, or text loses its escaped characters. It needs a test with & and character references in run text.
  2. Repin fluree-doc-* in the root Cargo.toml. Bump DOC_PARSE_REV with it so cached parses are invalidated. doc-parse main is 36 commits ahead of the current pin, so the repin also brings those changes in.

testsuite-sparql has its own quick-xml 0.37.5 with the same two advisories. It's test-only and not shipped, but it can move to 0.41 at the same time.

Follow-up from #2046.

Activity

  1. added
    P3
    area:cli
    on Oct 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3area:cli

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions