---
title: "CVE-2025-30223: Beego allows Reflected/Stored XSS in Beego's RenderForm() Function Due to Unescaped User Input"
url: https://erroneo.us/security/cve/CVE-2025-30223/
description: "CVE-2025-30223 (github.com/beego/beego/v2 (Go)): Beego is an open-source web framework for the Go programming language. Prior to 2.3.6, a Cross-Site…"
type: vulnerability-record
section: "Security Digest"
date_published: 2025-03-31
date_modified: 2025-08-04
publisher: erroneo.us
author: erroneo.us Security Desk
cve: "CVE-2025-30223"
kev: false
cvss: 9.3
epss: 0.00603
license: All rights reserved. Quote with attribution and a link.
---

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

**Signal:** Critical and remotely reachable. No known exploitation yet, but it is network-reachable without credentials. (Computed from CISA KEV, EPSS and CVSS; not an editorial verdict.)

## Should you act?

- Not in CISA KEV , but CISA’s SSVC assessment records a public proof-of-concept, so attack code exists.
- EPSS 0.6% , percentile 48: FIRST’s model estimates a 0.6% chance of exploitation activity in the next 30 days, higher than 48% of all scored CVEs (low). EPSS is a probability, not a verdict.
- Needs a user to click or open something. Phishing makes that realistic, but it is not wormable.
- Only applies if your dependency tree includes github.com/beego/beego/v2 (Go) < 2.3.6, fixed in 2.3.6 ; github.com/beego/beego (Go) <= 1.12.14, no fixed version listed . Check your lockfile, including transitive dependencies.

## What it is

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.

## Affected packages

- Go `github.com/beego/beego/v2` < 2.3.6 → fixed: 2.3.6
- Go `github.com/beego/beego` <= 1.12.14 → fixed: none listed

## Affected products (CVE record)

- beego beego: < 2.3.6

## Severity

- GitHub_M CVSS 3.1: 9.3 `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 `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N`

## Exploitation

- CISA KEV: not listed (no confirmed in-the-wild exploitation known to CISA).
- CISA SSVC assessment: exploitation poc , automatable no , technical impact total .
- FIRST EPSS (model of 2026-10-21): 0.60% probability of exploitation activity in the next 30 days; percentile 48.

## Sources

- [GitHub Advisory GHSA-2j42-h78h-q4fg](https://github.com/advisories/GHSA-2j42-h78h-q4fg)
- [CVE.org record CVE-2025-30223](https://www.cve.org/CVERecord?id=CVE-2025-30223)
- [NVD entry CVE-2025-30223](https://nvd.nist.gov/vuln/detail/CVE-2025-30223)
- [github.com](https://github.com/beego/beego/security/advisories/GHSA-2j42-h78h-q4fg)
- [github.com](https://github.com/beego/beego/commit/939bb18c66406466715ddadd25dd9ffa6f169e25)
- [pkg.go.dev](https://pkg.go.dev/vuln/GO-2025-3585)

---
Source page: https://erroneo.us/security/cve/CVE-2025-30223/ · Security Digest: https://erroneo.us/security/ · More: https://erroneo.us/llms.txt
