CVE-2025-3801: Github.com/songquanpeng/one api Cross-Site Scripting Vulnerability

MODERATE
Advisory Identifier: GHSA-wvcx-j62q-45qw
CVSS 2.4
CWE-79
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2025-3801
GHSA Identifier GHSA-wvcx-j62q-45qw
Severity MODERATE
CVSS v3.1 Base Score 2.4
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Github.com/songquanpeng/one api
Package Ecosystem Go
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required High (PR:H)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity Low (I:L)
Availability None (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.

github.com/songquanpeng/one-api fixed: Latest secure release
Upgrade github.com/songquanpeng/one-api to Latest secure release
Verify Direct and Transitive Dependencies

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

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.

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?
CVE-2025-3801 is a security vulnerability in Github.com/songquanpeng/one api involving one-api Cross-site Scripting vulnerability under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Github.com/songquanpeng/one api versions are affected?
Affected versions include releases prior to current release patches across affected packages: github.com/songquanpeng/one-api.
What version fixes CVE-2025-3801?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/songquanpeng/one-api affected?
Yes, github.com/songquanpeng/one-api is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2025-3801?
CVE-2025-3801 has a CVSS v3.1 base score of 2.4 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:N/I:L/A:N.
What CWE is associated with CVE-2025-3801?
CVE-2025-3801 is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (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.).
How can I check Go dependencies for CVE-2025-3801?
Run the dependency tree command: 'inspect dependencies for github.com/songquanpeng/one-api'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}