All reports
Medium

WordPress Core 6.5.0 - 7.1.2 - Authenticated (Author+) Second-Order SQL Injection via WXR Export

Affected versions

WordPresswordpress
Affected versions
>=6.5.0 <=6.5.12 || >=6.6.0 <=6.6.9 || >=6.7.0 <=6.7.9 || >=6.8.0 <=6.8.10 || >=6.9.0 <=6.9.9 || >=7.0.0 <=7.0.6 || >=7.1.0 <=7.1.2
Fixed version
6.5.13 · 6.6.10 · 6.7.10 · 6.8.11 · 6.9.10 · 7.0.7 · 7.1.3

Description

WordPress Core is vulnerable to second-order SQL Injection in versions 6.5 through 7.1.2 because non-numeric values collected from post thumbnail metadata are concatenated into a later WXR export query. This makes it possible for authenticated attackers, with Author-level access and above and a separate method of storing a crafted _thumbnail_id value, to alter a database query when a privileged user subsequently performs an applicable single-content-type export. The default All content export does not reach the vulnerable branch.

Links

Credits

  • Anthropic

Data rights and licenses

Wordfence

Copyright 2012-2026 Defiant Inc.

Defiant hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute this software vulnerability information. Any copy of the software vulnerability information you make for such purposes is authorized provided that you include a hyperlink to this vulnerability record and reproduce Defiant's copyright designation and this license in any such copy.

License terms