CVE-2025-3801: Github.com/songquanpeng/one api Cross-Site Scripting Vulnerability
MODERATECVE-2025-3801 is a MODERATE (CVSS 2.4) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Github.com/songquanpeng/one api libraries in the Go ecosystem. The issue involves one-api cross-site scripting vulnerability. Remediation is available in the latest vendor maintenance releases.
CVE-2025-3801 at a Glance
Security Impact
CVSS: 2.4
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:N/I:L/A:N).
How to Fix CVE-2025-3801
To remediate this vulnerability, upgrade all affected Github.com/songquanpeng/one api dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/songquanpeng/one-api to Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/songquanpeng/one-api
How to Check if You Are Affected
To determine whether your application is affected by CVE-2025-3801, inspect your project dependencies for Github.com/songquanpeng/one api:
inspect dependencies for github.com/songquanpeng/one-api
Analyze the terminal output to locate any version of Github.com/songquanpeng/one api in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Github.com/songquanpeng/one api, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-3801 Affected Github.com/songquanpeng/one api Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/songquanpeng/one-api
|
Go |
≤ 0.6.10
|
|
References
Frequently Asked Questions
What is CVE-2025-3801?
Which Github.com/songquanpeng/one api versions are affected?
What version fixes CVE-2025-3801?
Is github.com/songquanpeng/one-api affected?
What is the CVSS score of CVE-2025-3801?
What CWE is associated with CVE-2025-3801?
How can I check Go dependencies for CVE-2025-3801?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-wvcx-j62q-45qw",
"modified" : "2025-04-21T21:54:52Z",
"published" : "2025-04-19T15:30:23Z",
"aliases" : [ "CVE-2025-3801" ],
"summary" : "one-api Cross-site Scripting vulnerability",
"details" : "A vulnerability was found in songquanpeng one-api up to 0.6.10. It has been classified as problematic. This affects an unknown part of the component System Setting Handler. The manipulation of the argument Homepage Content leads to cross site scripting. It is possible to initiate the attack remotely. The exploit has been disclosed to the public and may be used.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:N/I:L/A:N"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/songquanpeng/one-api"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "0.6.10"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-3801"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/songquanpeng/one-api"
}, {
"type" : "WEB",
"url" : "https://github.com/yaowenxiao721/Poc/blob/main/One-API/One-API-poc.md"
}, {
"type" : "WEB",
"url" : "https://vuldb.com/?ctiid.305655"
}, {
"type" : "WEB",
"url" : "https://vuldb.com/?id.305655"
}, {
"type" : "WEB",
"url" : "https://vuldb.com/?submit.554702"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-04-21T21:54:52Z",
"nvd_published_at" : "2025-04-19T14:15:38Z"
}
}