{"id":"CVE-2025-30223","published":"2025-03-31T16:17:05Z","modified":"2025-03-31T18:21:08Z","title":"Beego allows Reflected/Stored XSS in Beego's RenderForm() Function Due to Unescaped User Input","vendor":"beego","product":"beego","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.3,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00828,"percentile":0.54686,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/beego/beego/security/advisories/GHSA-2j42-h78h-q4fg","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/beego/beego/commit/939bb18c66406466715ddadd25dd9ffa6f169e25","tags":["x_refsource_MISC"]}],"priority":{"score":17.4,"factors":[{"name":"EPSS percentile","points":10.94},{"name":"CVSS severity","points":6.51}]},"vendorSlug":"beego","affectedVersions":[{"vendor":"beego","product":"beego","versions":["< 2.3.6"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2025-03-31T18:20:35.269679Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/beego/beego/v2","vulnerableRanges":["<2.3.6"],"patched":["2.3.6"],"from":["GHSA-2j42-h78h-q4fg","GO-2025-3585"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/beego/beego","vulnerableRanges":["<=1.12.14","all versions"],"patched":[],"from":["GHSA-2j42-h78h-q4fg","GO-2025-3585"],"provenance":"source"}],"summary":{"text":"Beego, the open-source Go web framework, contains a cross-site scripting flaw in its RenderForm() function, which fails to properly HTML-escape user-controlled data before generating form markup. An attacker who can get a crafted value into that data can inject JavaScript that runs in a victim's browser if the victim interacts with the page, with the attack reachable over the network and requiring no authentication.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:52:38Z"},"euvd":{"id":"EUVD-2025-8839","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2024-40464","published":"2024-07-31","fixed":"2.2.1","kev":false},{"cve":"CVE-2024-40465","published":"2024-07-31","fixed":"2.2.1","kev":false},{"cve":"CVE-2024-55885","published":"2024-12-12","fixed":"2.3.4","kev":false,"link":{"from":"CVE-2024-55885","to":"CVE-2025-30223","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/beego/beego/v2","fromFixed":"2.3.4","toFixed":"2.3.6","daysApart":109}]}},{"cve":"CVE-2025-30223","published":"2025-03-31","fixed":"2.3.6","kev":false}],"package":"Go:github.com/beego/beego/v2"}}