Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessLure victim running local Lektor server
-
DeliveryServe malicious page using CSRF/DNS rebinding
-
ExploitSubmit drive-letter path to admin API
-
Executioncleanup_path fails to normalise path
-
ImpactWrite or recursively delete files outside project
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Absolute path validation
|
| Exploitation Conditions | Requires all of: (1) the Windows platform specifically - drive-letter paths like /C:/Users are the trigger and the flaw does not apply to Linux/macOS; (2) the victim actively running Lektor's unauthenticated local admin/dev server (e.g. 'lektor server'); (3) the victim being lured to a malicious web page that issues cross-site requests or performs DNS rebinding to reach the loopback server; and (4) supplying a drive-letter DB path to the deleterecord or newattachment admin endpoints, which cleanup_path does not normalise. Limiting factors that reduce real-world risk: Windows-only, mandatory user interaction (victim must visit the attacker's page while the server runs), the server being an unauthenticated local/development service rather than an exposed production endpoint, and the absence of confidentiality impact (write/delete only). |
| Impact | This is a genuine but moderate-priority issue, not a high-CVSS-but-hollow one, nor an emergency. The CVSS 4.0 base score of 5.9 (medium) is consistent with the vendor priority label 'this_month' rather than act_now or emergency. The 4.0 vector shows network reach (AV:N) and low complexity (AC:L) but is tempered by an attack requirement (AT:P) and required active user interaction (UI:A), meaning a victim must be running Lektor's unauthenticated local admin server AND be lured to an attacker-controlled page. PR:N confirms no authentication is needed against that local server. Impact is integrity/availability only (VI:H/VA:H: arbitrary file write and recursive directory deletion) with no confidentiality loss (VC:N) and no scope/subsequent-system impact. No EPSS score and no KEV listing were provided, and no confirmed working exploit code is present - only an upstream issue, the VulnCheck advisory, and the fix PRs. The practical risk is bounded and largely targeted rather than mass-exploitable: it affects Windows developers actively running the Lektor dev server, exploitation depends on CSRF or DNS rebinding reaching localhost, and it is platform-limited to Windows. One signal to verify: the description and advisory frame this as reachable via 'the unauthenticated local server,' so the AV:N rating reflects browser-mediated cross-site/DNS-rebinding reach to a loopback service, not a directly internet-exposed endpoint - defenders should interpret the network vector with that nuance. |
| Exploit ScenarioDerived | A developer on Windows runs 'lektor server', exposing the unauthenticated admin API on localhost. While it is running they visit an attacker-controlled web page, which issues cross-site requests (or uses DNS rebinding) to the local server and submits a drive-letter path such as /C:/Users/Public to the deleterecord or newattachment endpoint. Because cleanup_path does not normalise drive-letter paths, the server writes an attacker-controlled file or recursively deletes a directory outside the project. No confirmed working public exploit code is identified at time of analysis, though an upstream issue and a VulnCheck advisory publicly describe the flaw. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 06, 2026
Absolute path traversal in Lektor's unauthenticated local admin/dev API on Windows lets a hostile web page write attacker-controlled files or recursively delete directories outside the project's content tree while a developer has lektor server running. The trigger is a DB path carrying a Windows drive prefix (for example /C:/Users/Public) that cleanup_path/untrusted_to_os_path does not normalise, delivered to the deleterecord or newattachment endpoints through cross-site requests or DNS rebinding against the loopback server; exploitation additionally requires the Windows platform and a victim who is lured to the attacker's page while the server is up. Impact is integrity and availability only (no confidentiality, C:N/I:H/A:H; CVSS 4.0 5.9, independently assessed as CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:H), and no public exploit code was identified at time of analysis, with no confirmed active exploitation (not in CISA KEV).
RemediationAI
Apply the vendor fix carried by upstream PR https://github.com/lektor/lektor/pull/1302 (with related changes in https://github.com/lektor/lektor/pull/1288), which makes untrusted_to_os_path reject drive-prefixed DB paths and makes load_raw_data, make_editor_session and the admin API deserialiser fail closed; the provided data does not name a released tag that ships this change beyond identifying 3.3.14 and 3.4.0b15 as the last affected versions, so confirm the fixed release against the vendor advisory (https://www.vulncheck.com/advisories/lektor-through-3.3.14-and-3.4-0b15-path-traversal-via-admin-api-drive-letter-paths) before upgrading. Because exploitation requires the Windows platform, a running unauthenticated local server, and the victim visiting an attacker page from that same machine, the practical interim controls are: stop lektor server when it is not actively in use (this removes the attack surface entirely, at the cost of losing live preview), and avoid browsing untrusted sites from the same Windows host while the dev server is running (trade-off: operational inconvenience, but it defeats the cross-site-request and DNS-rebinding delivery paths). Running the build/preview workflow inside a Linux VM or container also sidesteps the Windows drive-letter condition, since the flaw does not apply on Linux or macOS. Note that binding to loopback is the default and does not by itself block DNS rebinding, so it should not be treated as a mitigation.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Lektor is a Python static site generator whose Flask-based admin UI is normally served by the unauthenticated local development server started with lektor server. Paths exchanged with the admin JSON API are "DB paths" that a helper, untrusted_to_os_path in lektor/utils.py, converts into filesystem paths after normalisation; per the CWE-36 (Absolute Path Traversal) root cause, that normalisation did not account for Windows drive prefixes. Because ntpath.splitdrive recognises C: as a drive and os.path.join discards its base argument when the joined component is absolute, a value such as /C:/Users/Public or /c:x could resolve outside the project's content/ directory on Windows, giving the admin API an arbitrary absolute write/delete target. The upstream fix (PR #1302, with related work in PR #1288) rejects any path whose ntpath.splitdrive(clean_path[1:]) reports a drive, raising ValueError, and callers propagate that rejection: db.load_raw_data returns None, editor.make_editor_session raises BadEdit("Invalid path"), and the API _deserialize hook raises a marshmallow ValidationError. Regression tests cover /C:/Users/Public, /C:Users, /c:x and /D:. The vulnerable code paths are the db.py path-to-filesystem conversion (to_fs_path) and the utils.py normalisation helpers referenced in the advisory at https://github.com/lektor/lektor/blob/v3.3.14/lektor/db.py#L1334-L1336 and https://github.com/lektor/lektor/blob/v3.3.14/lektor/utils.py#L83-L94.
Know when Lektor gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N
AV:N with AC:H because exploitation reaches the local server only via CSRF/DNS rebinding on Windows; PR:N as the server is unauthenticated; UI:R since the victim must visit a page; C:N, I:H/A:H for file write and directory deletion.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
Lektor through 3.3.14 and 3.4.0b15 contains an absolute path traversal vulnerability in the admin API on Windows that allows attackers to escape the project directory by supplying drive-letter paths that cleanup_path does not normalise. Attackers can use a malicious web page with cross-site requests or DNS rebinding against the unauthenticated local server to recursively delete directories via deleterecord or write attacker-controlled files via newattachment.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
EUVD-2026-118295
GHSA-9pg5-8hpj-vq4p
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB