CVE-2026-46671: Rust OneNote File Parser Path Traversal Vulnerability
MODERATECVE-2026-46671 is a MODERATE (CVSS 4.4) path traversal vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting Rust OneNote File Parser libraries in the crates.io ecosystem. The issue involves path traversal in `parser::parse_notebook` allows reading files outside the notebook directory. Remediation is available by upgrading affected packages to version 1.1.1.
CVE-2026-46671 at a Glance
Security Impact
CVSS: 4.4
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:L).
How to Fix CVE-2026-46671
To remediate this vulnerability, upgrade all affected Rust OneNote File Parser dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade onenote_parser to 1.1.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for onenote_parser
How to Check if You Are Affected
To determine whether your application is affected by CVE-2026-46671, inspect your project dependencies for Rust OneNote File Parser:
inspect dependencies for onenote_parser
Analyze the terminal output to locate any version of Rust OneNote File Parser in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.1.1), 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-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'), where the product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. In Rust OneNote File Parser, 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
CVE-2026-46671 Affected Rust OneNote File Parser Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
onenote_parser
|
crates.io |
< 1.1.1
|
1.1.1
|
References
Frequently Asked Questions
What is CVE-2026-46671?
Which Rust OneNote File Parser versions are affected?
What version fixes CVE-2026-46671?
Is onenote_parser affected?
What is the CVSS score of CVE-2026-46671?
What CWE is associated with CVE-2026-46671?
How can I check crates.io dependencies for CVE-2026-46671?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-4j5m-wc25-pvh7",
"modified" : "2026-05-21T21:32:11Z",
"published" : "2026-05-21T21:32:11Z",
"aliases" : [ "CVE-2026-46671" ],
"summary" : "Rust OneNote File Parser: Path traversal in `Parser::parse_notebook` allows reading files outside the notebook directory",
"details" : "### Impact\nA 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.\n\nThe 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.\n\nAnyone 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.\n\n### Patches\nFixed in onenote_parser 1.1.1. The fix rejects absolute paths, parent-directory components, and other invalid path characters in entry names, and additionally canonicalises the resolved path to confirm it stays inside the notebook's base directory.\n\n### Workarounds\nFor users who cannot upgrade to 1.1.1:\n\n- Only call `Parser::parse_notebook` on `.onetoc2` files from trusted sources.\n- Alternatively, use `Parser::parse_section` / `Parser::parse_section_buffer` on individual .one files, which do not perform the directory walk.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "crates.io",
"name" : "onenote_parser"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.1.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/msiemens/onenote.rs/security/advisories/GHSA-4j5m-wc25-pvh7"
}, {
"type" : "WEB",
"url" : "https://github.com/msiemens/onenote.rs/commit/c9267b2c96e2542be7e7b557d67318e81b733585"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/msiemens/onenote.rs"
}, {
"type" : "WEB",
"url" : "https://github.com/msiemens/onenote.rs/blob/master/CHANGELOG.md#111---2026-05-15"
}, {
"type" : "WEB",
"url" : "https://github.com/msiemens/onenote.rs/releases/tag/v1.1.1"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-22" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-05-21T21:32:11Z",
"nvd_published_at" : null
}
}