Skip to main content
VulnerabilityPublished Updated

obsidian-local-rest-api: Authenticated path traversal via URL-encoded %2F in /vault/{path} — arbitrary host file

Affects obsidian-local-rest-apiSource GCVE Database

0

CVSS 8.8 High : upgrade to 4.1.3 soon.

Data as of 2 Nov 2026, 20:16 UTC

CVSS 3.1 base score
8.8High
How severe the flaw is on the 0–10 CVSS scale.
Patch
Available – fixed in 4.1.3
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

What to do

Upgrade obsidian-local-rest-api to 4.1.3.

Affected software

ProductAffectedFixed in
npmobsidian-local-rest-apiAffected
  • <4.1.3
Fixed in
  • 4.1.3

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

The vulnerability can be mitigated by applying a confinement check similar to the one used in the MOVE operation: use posix.resolve to resolve the decoded path against a synthetic root (/vault) and reject any path that escapes this root. Reject any path segments that decode to '..' or result in traversal outside the vault directory. If you cannot patch yet, users should restrict access to the Local REST API to trusted clients only and consider disabling it if not needed.

Description

The obsidian-local-rest-api has an authenticated path traversal vulnerability in its /vault/{path} endpoints (GET/PUT/PATCH/POST/DELETE). The API decodes URL-encoded path segments after Express routing, allowing encoded traversal sequences like %2F to bypass routing checks and access files outside the vault. This enables an authenticated user to read, write, or delete arbitrary files on the host with the privileges of the Obsidian process. The vulnerability arises because the decoded path is not confined to the vault root, unlike the MOVE operation which has proper path confinement.

References

Community reviews

Loading reviews…