{"answers":{"affected":"2 open source packages ship an affected version, including onenote_parser. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-46671 in the wild and no public exploit code.","fix":"Upgrade onenote_parser to 1.1.1 or later.","what":"CVE-2026-46671 is a medium-severity path traversal vulnerability in msiemens onenote.rs, published on 20 Jul 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-46671 and fix it if it is affected.\n\nWhat it is: CVE-2026-46671 is a medium-severity path traversal vulnerability in msiemens onenote.rs, published on 20 Jul 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2026-46671 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- onenote_parser (crates.io): affected all versions; fixed in 1.1.1\n- onenote_parser (crates.io): affected all versions; fixed in 1.1.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-46671/ (Markdown: https://insights.sbomify.com/CVE-2026-46671/index.md)","id":"CVE-2026-46671","markdown":"https://insights.sbomify.com/CVE-2026-46671/index.md","name":"CVE-2026-46671","record":{"aliases":["GHSA-4j5m-wc25-pvh7"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read","denial_of_service"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Rust OneNote parser","requires_auth":"none","summary":"A path traversal vulnerability in the Rust OneNote parser allows attackers to read files outside the notebook directory or cause denial of service via crafted files.","user_interaction":"required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"rust_onenote_file_parser","vendor":"msiemens"}],"cvss":{"score":4.4,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:L","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"Rust OneNote File Parser is a parser for Microsoft OneNote files implemented in Rust. Prior to version 1.1.1, 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. The issue is fixed 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. For users who cannot upgrade to 1.1.1, only call `Parser::parse_notebook` on `.onetoc2` files from trusted sources. Alternatively, use `Parser::parse_section` / `Parser::parse_section_buffer` on individual .one files, which do not perform the directory walk.","ecosystems":["crates.io"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Rust OneNote File Parser: Path traversal in `Parser::parse_notebook` allows reading files outside the notebook directory","id":"CVE-2026-46671","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"crates.io","product":null,"products":[],"type":"path_traversal","year":"2026"},"n_packages":2,"n_references":4,"next":{"headline":"Actual: CSV Formula Injection in `@actual-app/cli` `--format csv` Output via Custom `escapeCsv` Helper","id":"CVE-2026-46672"},"packages":[{"ecosystem":"crates.io","fixed":["1.1.1"],"introduced":["0"],"last_affected":[],"package":"onenote_parser","purl":null,"source":"GHSA-4j5m-wc25-pvh7"},{"ecosystem":"crates.io","fixed":["1.1.1"],"introduced":["0"],"last_affected":[],"package":"onenote_parser","purl":"pkg:cargo/onenote_parser","source":"GHSA-4j5m-wc25-pvh7"}],"prev":{"headline":"YesWiki: Unauthenticated SQL Injection","id":"CVE-2026-46670"},"products":["onenote.rs"],"published":"2026-07-20","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-07-20","vendors":["msiemens"]},"summary":"A path traversal vulnerability in the Rust OneNote parser allows attackers to read files outside the notebook directory or cause denial of service via crafted files.","url":"https://insights.sbomify.com/CVE-2026-46671/"}