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

- Severity: Critical 9.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.61%, higher than 50% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-03-31T16:17:05.914Z
- Modified: 2026-09-10T03:50:06.178Z
- Also known as: GHSA-2j42-h78h-q4fg, GO-2025-3585
- Related: CGA-fvmc-hmjm-w7qf
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- beego beego: < 2.3.6; before 2.3.6
- github.com/beego/beego/v2 (Go): before 2.3.6
- github.com/beego/beego (Go): up to 1.12.14; all versions

## Every score

- GitHub_M: CVSS:3.1 9.3 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N`
- GitHub: CVSS:3.1 9.3 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N`
- NVD: CVSS:3.1 9.6 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H`

## References

- <https://github.com/beego/beego/security/advisories/GHSA-2j42-h78h-q4fg> (exploit, advisory, vendor-advisory, web)
- <https://github.com/beego/beego/commit/939bb18c66406466715ddadd25dd9ffa6f169e25> (fix, patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-30223> (advisory)
- <https://github.com/beego/beego> (package)
- <https://pkg.go.dev/vuln/GO-2025-3585> (web)

## Sources

- CVE List: [CVE-2025-30223](https://www.cve.org/CVERecord?id=CVE-2025-30223), CVE Terms of Use, modified 2025-03-31
- GitHub Advisory Database: [GHSA-2j42-h78h-q4fg](https://github.com/advisories/GHSA-2j42-h78h-q4fg), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2025-3585](https://pkg.go.dev/vuln/GO-2025-3585), CC-BY-4.0, modified 2026-02-04
- NVD: [CVE-2025-30223](https://nvd.nist.gov/vuln/detail/CVE-2025-30223), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-30223 · Whole record: https://cve.day/CVE-2025-30223.json · Rebuilt by cve.day 2026-11-25T22:58:55.739Z
