Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. onenote_parser
  4. ›
  5. CVE-2026-46671

CVE-2026-46671: Rust OneNote File Parser: Path traversal in `Parser::parse_notebook` allows reading files outside the notebook directory

May 21, 2026

A maliciously crafted .onetoc2 table-of-contents file can cause Parser::parse_notebook to open arbitrary files on the host filesystem outside the notebook’s directory. The parser reads entry names listed inside the .onetoc2 and joins them against the notebook’s base directory without validating that they are relative paths confined to that directory.

The parser will bail out when the target file fails to parse as a OneNote section, so direct content exfiltration through the parser’s return value is not practical, though file-existence probing and denial-of-service via large or special files remain possible.

Anyone using onenote_parser to parse .onetoc2 files received from untrusted sources is affected. Users who only ever parse their own notebooks are not at meaningful risk.

References

  • github.com/advisories/GHSA-4j5m-wc25-pvh7
  • github.com/msiemens/onenote.rs/blob/master/CHANGELOG.md
  • github.com/msiemens/onenote.rs/commit/c9267b2c96e2542be7e7b557d67318e81b733585
  • github.com/msiemens/onenote.rs/releases/tag/v1.1.1
  • github.com/msiemens/onenote.rs/security/advisories/GHSA-4j5m-wc25-pvh7
  • nvd.nist.gov/vuln/detail/CVE-2026-46671

Code Behaviors & Features

Detect and mitigate CVE-2026-46671 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.1.1

Fixed versions

  • 1.1.1

Solution

Upgrade to version 1.1.1 or above.

Impact 4.4 MEDIUM

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:L

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

cargo/onenote_parser/CVE-2026-46671.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 23 Jun 2026 12:22:54 +0000.