Gutenberg 12.9.0 - 18.0.0 - Unauthenticated & Authenticated (Contributor+) Stored Cross-Site Scripting via Avatar Block

6.4
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
CVSS 6.4 (Medium)
Publicly Published April 9, 2024
Last Updated April 10, 2024
Researchers John Blackbourn
stealthcopter

Description

The Gutenberg plugin for WordPress is vulnerable to Stored Cross-Site Scripting via user display names in the Avatar block in versions 12.9.0 to 18.0.0 due to insufficient output escaping on the display name. This makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. In addition, it also makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that have the comment block present and display the comment author's avatar.

Learn more about Cross-Site Scripting vulnerabilities and how to prevent them.

References

Share

Vulnerability Details for Gutenberg

Software Type Plugin
Software Slug gutenberg (view on wordpress.org)
Patched? Yes
Remediation Update to version 18.01, or a newer patched version
Affected Version
  • 12.9.0 - 18.0.0
Patched Version
  • 18.01

Recent vulnerabilities in Gutenberg

# Title CVE ID CVSS Researchers Date
1 Gutenberg <= 21.8.2 - Authenticated (Contributor+) Stored Cross-Site Scripting CVE-2025-64354 6.4 Peter Thaleikis October 25, 2025
2 WordPress Core < 6.5.5 - Authenticated (Contributor+) Stored Cross-Site Scripting via Template Part Block CVE-2024-31111 6.4 Rafie Muhammad June 24, 2024
3 WordPress Core 5.9-6.3.1 - Authenticated(Contributor+) Stored Cross-Site Scripting via Navigation Attributes CVE-2023-38000 6.4 Rafie Muhammad, Edourard L October 12, 2023
4 WordPress Core < 6.0.3 & Gutenberg < 14.3.1 - Authenticated Cross-Site Scripting in Various Blocks CVE-2022-43500 6.4 Alex Concha October 18, 2022
5 WordPress Core < 5.9.2 & Gutenberg < 12.7.2 - Prototype Pollution via Block Editor 5.4 Researchers from Johns Hopkins University March 11, 2022

Did you know Wordfence Intelligence provides free personal and commercial API access to our comprehensive WordPress vulnerability database, along with a free webhook integration to stay on top of the latest vulnerabilities added and updated in the database? Get started today!

Learn more

Want to get notified of the latest vulnerabilities that may affect your WordPress site?
Install Wordfence on your site today to get notified immediately if your site is affected by a vulnerability that has been added to our database.

Get Wordfence

The Wordfence Intelligence WordPress vulnerability database is completely free to access and query via API. Please review the documentation on how to access and consume the vulnerability data via API.

Documentation