ADVISORIES

GitHub Advisory Database

GHSA-wv28-7fpw-fj49

Lektor does not sanitize database path traversal

Details

Lektor before 3.3.11 does not sanitize DB path traversal. Thus, shell commands might be executed via a file that is added to the templates directory, if the victim's web browser accesses an untrusted website that uses JavaScript to send requests to localhost port 5000, and the web browser is running on the same machine as the "lektor server" command.

Affected packages

EcosystemPackageAffected versions
PyPIlektor
All versions before 3.3.11 (fixed in 3.3.11)
PyPIlektor
From 3.4.0b1 before 3.4.0b11 (fixed in 3.4.0b11)

References