CVE-2025-30223: beego Cross-site Scripting
Vulnerability summary
CVE-2025-30223 is a critical (CVSS 9.6) Cross-site Scripting vulnerability in beego. EPSS estimates a 0.60% chance of exploitation in the next 30 days, higher than 47.8% of scored vulnerabilities. 1 public exploit is recorded.
Advisory lineage
Upstream 0 · Downstream 1 · Related 8Timeline
- 31-03-2025PublishedVulnerability first disclosed.
- 31-03-2025Last modifiedVulnerability information updated.
Description
Beego is an open-source web framework for the Go programming language. Prior to 2.3.6, a Cross-Site Scripting (XSS) vulnerability exists in Beego's RenderForm() function due to improper HTML escaping of user-controlled data. This vulnerability 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. Since it is a high-level function generating an entire form markup, many developers would assume it automatically escapes attributes (the way most frameworks do). This vulnerability is fixed in 2.3.6.
CVSS metrics
4 scores · 4 sources · 1 version- CVE.orgCNA9.3CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:NDiffers
- OSV · GoEcosystem advisory · calculated9.3CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:NDiffers
- OSV · ChainguardEcosystem advisory · calculated9.3CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:NDiffers
EPSS trend
Probability
0.60%
Chance of exploitation in the next 30 days
Percentile
48%
Versus all other CVEs
30-day change
+0.01 pp
From 0.59% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundBeego
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Chainguard33 products
- harbor-2.11< 2.11.2-r7
- harbor-2.11-exporter< 2.11.2-r7
- harbor-2.11-jobservice< 2.11.2-r7
- harbor-2.11-photon-registry< 2.11.2-r7
- harbor-2.11-portal< 2.11.2-r7
Beego1 product
- beego< 2.3.6
Github.com/beego1 product
- beego≤ 1.12.14 | All versions (No fix recorded)
Github.com/beego/beego1 product
- v2< 2.3.6
4 vendors · 36 products
References
6 links- github.com/beego/beego/security/advisories/GHSA-2j42-h78h-q4fgX Refsource CONFIRMWEBAdvisoryExploitVendor Advisory
- github.com/beego/beegoPACKAGE