CVE-2026-122090: Pelican 4.12.0 - OS command injection in WordPress importer
Pelican 4.12.0 contains an OS command injection vulnerability in pelican-import. An attacker-controlled wp:postname from a WordPress XML export is used in an output filename that is interpolated into a Pandoc command passed to subprocess.call with shell=True. On POSIX systems, command substitution in the slug is evaluated when a user imports the crafted export.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
Replace the shell command string passed to subprocess.call with a list-based Pandoc invocation, keeping each argument as a separate list element.
Event History
Frequently Asked Questions
Who is exposed to this issue?
Users running Pelican 4.12.0 on POSIX systems are exposed when they use pelican-import to import a WordPress XML export from an untrusted source.
What does an attacker need to exploit it?
The attacker needs to supply or influence a WordPress XML export containing a crafted wp:post_name value. Exploitation occurs when a user imports that export with pelican-import, causing command substitution in the slug to be evaluated.
Is a normal Pelican site affected merely by serving content?
The described execution path is the WordPress import workflow in pelican-import. The provided information does not indicate that serving an existing Pelican site triggers the issue.
What can be done if patching is not immediately possible?
Do not import WordPress XML exports from untrusted or unreviewed sources with pelican-import. Treat wp:post_name values in any export to be imported as potentially dangerous, especially values containing POSIX command-substitution syntax.