Vulnerabilities in pkg:pypi/webssh
PACKAGECVE-2025-7885 is a LOW (CVSS 4.3) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Webssh libraries in the PyPI ecosystem. The issue involves webssh cross-site scripting vulnerability. Remediation is available by upgrading affected packages to version 1.6.3.
pkg:pypi/webssh
Vulnerability advisories affecting package pkg:pypi/webssh. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-9cg4-9hv5-3376 | CVE-2025-7885 | LOW | WebSSH Cross-site Scripting vulnerability |
CVE-2025-7885 at a Glance
Security Impact
CVSS: 4.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N).
How to Fix CVE-2025-7885
To remediate this vulnerability, upgrade all affected Webssh dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install webssh>=1.6.3
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show webssh
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2025-7885, inspect your installed packages using pip:
pip show webssh
Analyze the terminal output to locate any version of Webssh in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.6.3), your application is affected.
Note: The pip show webssh command checks currently installed packages in your active Python environment.
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 Webssh, 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-7885 Affected Webssh Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
webssh
|
PyPI |
< 1.6.3
|
1.6.3
|
References
Frequently Asked Questions
What is CVE-2025-7885?
Which Webssh versions are affected?
What version fixes CVE-2025-7885?
Is webssh affected?
What is the CVSS score of CVE-2025-7885?
What CWE is associated with CVE-2025-7885?
How can I check PyPI dependencies for CVE-2025-7885?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-9cg4-9hv5-3376",
"modified" : "2026-06-08T19:53:20Z",
"published" : "2025-07-20T12:30:27Z",
"aliases" : [ "CVE-2025-7885" ],
"summary" : "WebSSH Cross-site Scripting vulnerability",
"details" : "A vulnerability, which was classified as problematic, has been found in Huashengdun WebSSH up to 1.6.2. Affected by this issue is some unknown functionality of the component Login Page. The manipulation of the argument hostname/port leads to cross site scripting. The attack may be launched remotely. The exploit has been disclosed to the public and may be used. The vendor was contacted early about this disclosure but did not respond in any way.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:P"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "webssh"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.6.3"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-7885"
}, {
"type" : "WEB",
"url" : "https://github.com/huashengdun/webssh/issues/410"
}, {
"type" : "WEB",
"url" : "https://github.com/huashengdun/webssh/commit/a7a704f111391c82efc1bacf89693ff45bda7f5f"
}, {
"type" : "WEB",
"url" : "https://github.com/4m3rr0r/PoCVulDb/blob/main/CVE-2025-7885.md"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/huashengdun/webssh"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/webssh/PYSEC-2025-234.yaml"
}, {
"type" : "WEB",
"url" : "https://vuldb.com/?ctiid.317000"
}, {
"type" : "WEB",
"url" : "https://vuldb.com/?id.317000"
}, {
"type" : "WEB",
"url" : "https://vuldb.com/?submit.613610"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2025-09-15T23:59:11Z",
"nvd_published_at" : "2025-07-20T12:15:24Z"
}
}