CVE-2026-104059 Details
Description
Lektor 3.3.14 and 3.4.0b15 contains a cross-site request forgery vulnerability in the admin API blueprint that allows unauthenticated attackers to perform state-changing actions by sending cross-origin requests without CSRF tokens, Origin/Referer validation, CORS configuration, or Host allowlisting. Attackers can exploit the newattachment, deleterecord, build, clean, and publish endpoints from a malicious web page to write arbitrary files, delete pages, wipe build output, trigger deployment publication, and via DNS rebinding reach read endpoints to disclose data.
A cross-site request forgery (CSRF) vulnerability has been identified in Lektor versions 3.3.14 and 3.4.0b15. The vulnerability exists in the admin API blueprint, where unauthenticated attackers can perform state-changing actions. This is possible by sending cross-origin requests that lack CSRF tokens, Origin or Referer validation, CORS configuration, and Host allowlisting. Exploitation can be done through a malicious web page, targeting endpoints such as newattachment, deleterecord, build, clean, and publish. This could lead to unauthorized file writes, page deletions, build output wipes, deployment publications, and, via DNS rebinding, access to read endpoints for data disclosure.
It is recommended to implement CSRF token requirements for all state-changing admin API routes. At a minimum, verify the Origin and Referer headers against the server's own address and reject requests that do not include either. For modern browsers, a Sec-Fetch-Site: same-origin check would be effective. Additionally, the publish endpoint should be changed from a GET to a POST.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Oct 1, 2026CISA-ADP
Assessed Oct 2, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://gist.github.com/mansurmavlankulov/c7683e3204e84892e442b0196585d5bb | [email protected] | Technical Description |
| https://www.vulncheck.com/advisories/lektor-csrf-via-admin-api-endpoints | [email protected] | Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-352 | Cross-Site Request Forgery (CSRF) | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Lektor | 3.3.14 (semver) 3.4.0b15 |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 2, 2026 | CVE Modified | CISA-ADP |
| Oct 1, 2026 | New CVE Received | [email protected] |
Volerion