All reports
Medium

WordPress Core 4.7.0 - 7.1.2 - Authenticated (Contributor+) Stored Cross-Site Scripting via Imgur oEmbed

Affected versions

WordPresswordpress
Affected versions
>=4.7.0 <=4.7.37 || >=4.8.0 <=4.8.32 || >=4.9.0 <=4.9.33 || >=5.0.0 <=5.0.29 || >=5.1.0 <=5.1.26 || >=5.2.0 <=5.2.28 || >=5.3.0 <=5.3.25 || >=5.4.0 <=5.4.23 || >=5.5.0 <=5.5.22 || >=5.6.0 <=5.6.21 || >=5.7.0 <=5.7.19 || >=5.8.0 <=5.8.17 || >=5.9.0 <=5.9.18 || >=6.0.0 <=6.0.16 || >=6.1.0 <=6.1.14 || >=6.2.0 <=6.2.13 || >=6.3.0 <=6.3.12 || >=6.4.0 <=6.4.12 || >=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
4.7.38 · 4.8.33 · 4.9.34 · 5.0.30 · 5.1.27 · 5.2.29 · 5.3.26 · 5.4.24 · 5.5.23 · 5.6.22 · 5.7.20 · 5.8.18 · 5.9.19 · 6.0.17 · 6.1.15 · 6.2.14 · 6.3.13 · 6.4.13 · 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 Stored Cross-Site Scripting via Imgur embeds in versions 4.7 through 7.1.2 because Imgur is registered as a trusted oEmbed provider and its returned embed HTML is rendered without untrusted-provider sanitization. This makes it possible for authenticated attackers, with Contributor-level access and above, to store a crafted Imgur embed that can execute web scripts when an affected post is rendered by another user.

Links

Credits

  • Zhengyu Liu
  • Jingcheng Yang
  • Gavin Zhong

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