CVE-2025-30223
CVE-2025-30223 is a critical-severity vulnerability in Beego with a CVSS 3.x base score of 9.3. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-79.
Key facts
- Severity: Critical (CVSS 3.x base score 9.3)
- EPSS exploit prediction: 1% (44th percentile)
- Actively exploited: Not listed in CISA KEV
- EU (EUVD) id: EUVD-2025-8839
- Weakness: CWE-79
- Affected product: Beego
- Published:
- Last modified:
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.
Frequently asked questions
- What is CVE-2025-30223?
- 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.
- How severe is CVE-2025-30223?
- CVE-2025-30223 has a CVSS 3.x base score of 9.3, rated critical severity. It is exploitable over network with low attack complexity, requires no privileges and user interaction. Impact on confidentiality is high, integrity high, and availability none.
- Is CVE-2025-30223 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 1% (44th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2025-30223?
- CVE-2025-30223 affects Beego. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2025-30223?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its critical severity, prioritise patching exposed systems.
- Does CVE-2025-30223 have an EU (EUVD) identifier?
- Yes. CVE-2025-30223 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2025-8839.
- When was CVE-2025-30223 published?
- CVE-2025-30223 was published on 2025-03-31 and last updated on 2026-06-17.
References
- https://github.com/beego/beego/commit/939bb18c66406466715ddadd25dd9ffa6f169e25
- https://github.com/beego/beego/security/advisories/GHSA-2j42-h78h-q4fg
Affected products (1)
- cpe:2.3:a:beego:beego:*:*:*:*:*:*:*:*
More vulnerabilities in Beego
- CVE-2022-31836 — Critical (CVSS 9.8): The leafInfo.match() function in Beego v2.0.3 and below uses path.join() to deal with wildcardvalues which can lead to…
- CVE-2022-31259 — Critical (CVSS 9.8): The route lookup process in beego before 1.12.9 and 2.x before 2.0.3 allows attackers to bypass access control. When a…
- CVE-2021-30080 — Critical (CVSS 9.8): An issue was discovered in the route lookup process in beego before 1.12.11 that allows attackers to bypass access…
- CVE-2024-40465 — High (CVSS 8.8): An issue in beego v.2.2.0 and before allows a remote attacker to escalate privileges via the getCacheFileName function…
- CVE-2024-40464 — High (CVSS 8.8): An issue in beego v.2.2.0 and before allows a remote attacker to escalate privileges via the sendMail function located…
- CVE-2021-27117 — High (CVSS 7.8): An issue was discovered in file profile.go in function GetCPUProfile in beego through 2.0.2, allows attackers to launch…
Other CWE-79 (Cross-site Scripting (XSS)) vulnerabilities
- CVE-2025-49410 — Critical (CVSS 10.0): Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in Imran Emu TC…
- CVE-2024-47875 — Critical (CVSS 10.0): DOMPurify is a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. DOMpurify was vulnerable to…
- CVE-2024-6886 — Critical (CVSS 10.0): Improper Neutralization of Input During Web Page Generation (XSS or 'Cross-site Scripting') vulnerability in Gitea…
- CVE-2023-45144 — Critical (CVSS 10.0): com.xwiki.identity-oauth:identity-oauth-ui is a package to aid in building identity and service providers based on…
- CVE-2023-45138 — Critical (CVSS 10.0): Change Request is an pplication allowing users to request changes on a wiki without publishing the changes directly.…
- CVE-2022-4361 — Critical (CVSS 10.0): Keycloak, an open-source identity and access management solution, has a cross-site scripting (XSS) vulnerability in the…
Browse all CWE-79 (Cross-site Scripting (XSS)) vulnerabilities →