9.6
CRITICAL CVSS 3.1
CVE-2025-30223
Beego Cross-Site Scripting Vulnerability
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.

INFO

Published Date :

March 31, 2025, 5:15 p.m.

Last Modified :

Aug. 1, 2025, 6:58 p.m.

Remotely Exploit :

Yes !
Affected Products

The following products are affected by CVE-2025-30223 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Beego beego
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 3.1 CRITICAL [email protected]
CVSS 3.1 CRITICAL [email protected]
Solution
Update Beego to version 2.3.6 or later to fix the XSS vulnerability.
  • Update the Beego framework to version 2.3.6.
  • Ensure user-controlled data is properly escaped.
  • Review and sanitize all form rendering inputs.
  • Test the application for XSS vulnerabilities.
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2025-30223.

URL Resource
https://github.com/beego/beego/commit/939bb18c66406466715ddadd25dd9ffa6f169e25 Patch
https://github.com/beego/beego/security/advisories/GHSA-2j42-h78h-q4fg Vendor Advisory Exploit
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2025-30223 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2025-30223 weaknesses.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2025-30223 vulnerability anywhere in the article.

  • Daily CyberSecurity
CVE-2025-30223 (CVSS 9.3): Critical XSS Vulnerability Discovered in Beego Framework

A Cross-Site Scripting (XSS) vulnerability has been identified in the Beego framework, a popular Go framework for building web applications and APIs. This vulnerability, tracked as CVE-2025-30223 (CVS ... Read more

Published Date: Apr 02, 2025 (4 months, 3 weeks ago)

The following table lists the changes that have been made to the CVE-2025-30223 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • Initial Analysis by [email protected]

    Aug. 01, 2025

    Action Type Old Value New Value
    Added CVSS V3.1 AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
    Added CPE Configuration OR *cpe:2.3:a:beego:beego:*:*:*:*:*:*:*:* versions up to (excluding) 2.3.6
    Added Reference Type GitHub, Inc.: https://github.com/beego/beego/commit/939bb18c66406466715ddadd25dd9ffa6f169e25 Types: Patch
    Added Reference Type GitHub, Inc.: https://github.com/beego/beego/security/advisories/GHSA-2j42-h78h-q4fg Types: Exploit, Vendor Advisory
  • New CVE Received by [email protected]

    Mar. 31, 2025

    Action Type Old Value New Value
    Added 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.
    Added CVSS V3.1 AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N
    Added CWE CWE-79
    Added Reference https://github.com/beego/beego/commit/939bb18c66406466715ddadd25dd9ffa6f169e25
    Added Reference https://github.com/beego/beego/security/advisories/GHSA-2j42-h78h-q4fg
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
Vulnerability Scoring Details
Base CVSS Score: 9.6
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality Impact
Integrity Impact
Availability Impact