CVE-2025-65956
PHP vulnerability analysis and mitigation

Overview

A stored cross-site scripting (XSS) vulnerability was discovered in Formwork CMS affecting versions 2.1.5 and below, identified as CVE-2025-65956. The vulnerability allows attackers to inject malicious scripts through blog tags that persist in the system and execute when users access or edit affected blog posts. The issue was discovered in November 2025 and has been patched in version 2.2.0 (GitHub Advisory).

Technical details

The vulnerability stems from improper sanitization of data inserted into blog tags before saving and rendering them in the edit blog interface. The issue is classified under CWE-79 (Improper Neutralization of Input During Web Page Generation) and CWE-80 (Improper Neutralization of Script-Related HTML Tags). The vulnerability has been assigned a CVSS v3.1 score of 6.5 (Moderate), with the vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:L, indicating network attack vector, low attack complexity, and required user interaction (GitHub Advisory).

Impact

When exploited, the vulnerability allows attackers to create persistent XSS attacks that execute whenever users with CMS credentials access or edit affected blog posts. Once a malicious tag is inserted, it becomes impossible to remove, and any attempt to remove the tag triggers the XSS payload again. Furthermore, the vulnerability creates an interface lockout condition where managing standard tags becomes impossible due to continuous script execution on attempted modifications (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in Formwork CMS version 2.2.0. The fix includes replacing innerHTML with innerText throughout the codebase and introducing proper HTML escaping via a new escapeHtml utility function. Users are advised to upgrade to version 2.2.0 or later to protect against this vulnerability (GitHub Pull Request).

Additional resources


SourceThis report was generated using AI

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-65960MEDIUM6.6
  • PHPPHP
  • contao/core-bundle
NoYesNov 25, 2025
CVE-2025-65956MEDIUM6.5
  • PHPPHP
  • getformwork/formwork
NoYesNov 26, 2025
CVE-2025-66026MEDIUM6.1
  • PHPPHP
  • redaxo/source
NoYesNov 26, 2025
CVE-2025-64027MEDIUM6.1
  • PHPPHP
  • snipe-it
NoNoNov 20, 2025
CVE-2025-65961LOW3.3
  • PHPPHP
  • contao/core-bundle
NoYesNov 25, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management