Vulnerabilities / CodeColorer / WPSEC-2026-3825

CodeColorer <= 0.12.0 - Unauthenticated Stored Cross-Site Scripting via Comments

High 7.2 CWE-79Fixed in 0.12.1
ID
WPSEC-2026-3825
Plugin
CodeColorer (codecolorer)
Affected
all versions before 0.12.1
Remediation
Update to 0.12.1 or later.
CVSS 3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
Weakness
CWE-79
Usage
Plugin Low · Affected versions Low among sites WPSec scans, 2026-11-24
Attack surface
CodeColorer on WPSec AttackSurface
Fix released
Published

Description

The CodeColorer plugin for WordPress is vulnerable to Stored Cross-Site Scripting via comments in all versions up to, and including, 0.12.0. This is due to the plugin's handling of code blocks in comments: the blocks it shields from WordPress's comment filtering when a comment is saved are not always the blocks it parses when the comment is displayed, so unfiltered HTML from a shielded block can end up outside any code block, and the plugin applied no filtering on display. This makes it possible for unauthenticated attackers, where comments are open, to inject arbitrary web scripts into comments that execute whenever a user views the comment.

References

Published by WPSec. Provided as is, without warranty. Corrections: contact us.

This advisory as JSON, OSV or Markdown · All advisories: JSON, OSV, RSS

License: CC BY 4.0