PT-2025-13800

CVE-2025-30223

·

Published

2025-03-31

·

Updated

2026-09-18

Description by

CVSS 3.1
9.6
Critical
MetricsAV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions Beego versions prior to 2.3.6
Description Beego is an open-source web framework for the Go programming language. A Cross-Site Scripting (XSS) vulnerability exists in the RenderForm() function due to improper HTML escaping of user-controlled data. This allows attackers to inject malicious JavaScript code that executes in victims' browsers, potentially leading to session hijacking, credential theft, or account takeover. The vulnerability affects any application using Beego's RenderForm() function with user-provided data. The RenderForm() function generates an entire form markup and does not automatically escape attributes, creating a risk for injection attacks. The vulnerability is located in the renderFormField() function in templatefunc.go (around lines 316-356) where user-provided values are directly injected into HTML without proper escaping.
Recommendations Update Beego to version 2.3.6 or later.
Exploitability
Exploit
Fix
Impacts
Researchers
Vendors
Affected products
Related identifiers
GHSA-2J42-H78H-Q4FG
CLEANSTART-2025-JI63720
GO-2025-3585
OPENSUSE-SU-2025:14970-1
Found an issue in the description? Have something to add? Feel free to write us 👾