Advisory

GHSA-7j46-f57w-76pj

Also known as: CVE-2025-65956

Summary

Formwork CMS has Stored Cross-Site Scripting Vulnerebility in Blog Tags

Details

Summary
Inserting unsanitized data into the blog tag field in Formwork CMS results in stored cross‑site scripting (XSS).
Any user with credentials to the Formwork CMS who accesses or edits an affected blog post will have attacker‑controlled script executed in their browser. Because the issue is persistent and impacts privileged administrative workflows, the severity is elevated.

Details
Formwork CMS fails to properly sanitize data inserted into tags, before saving them and rendering them into the edit blog interface. When a specially crafted tag becomes saved as a tag into the system, it is unable to be removed. Any attempt to remove the tag from the affected post, causes the XSS to trigger once again.

Additionally, once the malicious tag is present, managing standard tags becomes impossible. This is due to script execution on attempted modification. This leads to a form of interface lockout where the payload continually reinserts itself due to the stored, unsafe rendering.

Impact
This is a stored cross‑site scripting (XSS) vulnerability.

This impacts all users who access the affected blog post’s edit page.

Patches
Formwork 2.2.0 ensures proper escaping of user input in tag fields.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2025-11-24 22:13 UTC
Modified
2026-02-22 23:19 UTC

Affected packages and fixes

getformwork/formwork

Packagist · All systems

Affected

  • introduced 0, fixed 2.2.0 (ecosystem)

Fixed versions

2.2.0

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences