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

- Priority: **Prioritise**
- Reason: Public exploit (GitHub, Date unknown)
- Next step: Check applicability: affected before 2.3.6 (CNA); fix release not confirmed
- Status: published
- Published: 2025-03-31 · Modified: 2025-03-31
- Aliases: GHSA-2j42-h78h-q4fg, GO-2025-3585, CGA-227p-c7xp-x322, CGA-2hcw-x9fx-66h7, CGA-3rfm-pcvm-h7mc, CGA-43mr-7q4w-3q38, CGA-4m25-7355-4vp4, CGA-57cr-fxfv-f339, CGA-5fx7-hp9x-67pj, CGA-5rh2-jmw3-4r86, CGA-69jc-hr54-mhh4, CGA-6f45-fjrm-f8mp, CGA-6ggj-2qw8-wr6g, CGA-6pq8-fjh5-6j8h, CGA-7fcq-g2xg-4cm5, CGA-7m8p-pcq5-63c8, CGA-7qv6-4qj3-f3vw, CGA-8hfv-w3vj-3vx9, CGA-8rj2-w9x2-w4fh, CGA-8w55-j5v6-95qr, CGA-9gq5-6qmq-x74j, CGA-9wv9-54h9-744v, CGA-c2f6-99hm-379h, CGA-cxpw-x72j-426j, CGA-f5mr-6q9j-v7vw, CGA-f65x-7mch-vmh8, CGA-fvcq-j6hf-hg8m, CGA-g686-w2wx-vwm9, CGA-gfpr-6h2h-89xq, CGA-gm94-m38g-vrh7, CGA-h272-293q-6j2j, CGA-hffr-wcwx-87q9, CGA-hg5m-9q78-7mmj, CGA-j7r5-mr43-4pc3, CGA-jxqr-99rh-9v37, CGA-m6wq-crvq-m7qm, CGA-mf2p-264j-grcf, CGA-mh8j-92c6-p8vq, CGA-mpq8-wvqf-cq9x, CGA-mrpj-748j-cp2w, CGA-p5vm-2hg3-66fr, CGA-pp3q-9pxh-7674, CGA-q4j5-x7mj-g7x9, CGA-qfq3-9gr6-wjfw, CGA-qmr9-6gq9-x96c, CGA-r8fr-prx2-m5cm, CGA-rj39-37xm-hxcc, CGA-rrx7-7rph-3328, CGA-v278-33h9-mv32, CGA-v55v-3xfr-qffj, CGA-v6g3-jxwj-qpcj, CGA-vfrp-25rf-v2jm, CGA-vqgw-h5jh-fg5f, CGA-vv99-rmxc-743p, CGA-vwfc-jfm9-v74g, CGA-w38g-4v62-4xp8, CGA-w45q-77w4-5c9p, CGA-w6f8-h83g-mv6f, CGA-w8x8-f5vf-pf53, CGA-wjmg-p5cm-97p9, CGA-wpgp-3gm5-rf66, CGA-wxg6-6rm6-w23c, CGA-x6jw-8cpg-r2wf, CGA-x93g-vhj7-2gx2, CGA-xh98-pr2c-hqc9, CGA-xjq3-x5gm-mwj2, CGA-xp5p-xrfc-28r9, CGA-xwcw-xrpx-27gp
- Record: https://cvemate.com/vulnerability/CVE-2025-30223 · JSON: https://cvemate.com/vulnerability/CVE-2025-30223/json

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

## Signals

- CVSS: 9.6 critical (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
- EPSS: 0.615%, percentile 50.946%, as of 2026-12-05
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected (first 20 of 36)

- chainguard harbor-2.11 (Chainguard): \< 2.11.2-r7
- chainguard harbor-2.11-exporter (Chainguard): \< 2.11.2-r7
- chainguard harbor-2.11-jobservice (Chainguard): \< 2.11.2-r7
- chainguard harbor-2.11-photon-registry (Chainguard): \< 2.11.2-r7
- chainguard harbor-2.11-portal (Chainguard): \< 2.11.2-r7
- chainguard harbor-2.11-portal-nginx-config (Chainguard): \< 2.11.2-r7
- chainguard harbor-2.11-redis-compat (Chainguard): \< 2.11.2-r7
- chainguard harbor-2.11-registryctl (Chainguard): \< 2.11.2-r7
- chainguard harbor-2.12 (Chainguard): \< 2.12.2-r9
- chainguard harbor-2.12-exporter (Chainguard): \< 2.12.2-r9
- chainguard harbor-2.12-jobservice (Chainguard): \< 2.12.2-r9
- chainguard harbor-2.12-photon-registry (Chainguard): \< 2.12.2-r9
- chainguard harbor-2.12-portal (Chainguard): \< 2.12.2-r9
- chainguard harbor-2.12-portal-nginx-config (Chainguard): \< 2.12.2-r9
- chainguard harbor-2.12-redis-compat (Chainguard): \< 2.12.2-r9
- chainguard harbor-2.12-registryctl (Chainguard): \< 2.12.2-r9
- chainguard harbor-2.9-portal-nginx-config (Chainguard): \< 2.9.5-r17
- chainguard harbor-fips-2.11 (Chainguard): \< 2.11.2-r10
- chainguard harbor-fips-2.11-db (Chainguard): \< 2.11.2-r10
- chainguard harbor-fips-2.11-exporter (Chainguard): \< 2.11.2-r10

## References

- <https://github.com/beego/beego/security/advisories/GHSA-2j42-h78h-q4fg>
- <https://github.com/beego/beego/commit/939bb18c66406466715ddadd25dd9ffa6f169e25>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-30223>
- <https://github.com/beego/beego>
- <https://pkg.go.dev/vuln/GO-2025-3585>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/30xxx/CVE-2025-30223.json>

---

Data as of 2026-12-05T18:19:43.827Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
