Vulnerabilities in pkg:pypi/webssh

PACKAGE
Advisory Identifier: GHSA-9cg4-9hv5-3376
Advisory Summary

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

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/webssh

1 Known Advisory Record(s)

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

CVE Identifier CVE-2025-7885
GHSA Identifier GHSA-9cg4-9hv5-3376
Severity LOW
CVSS v3.1 Base Score 4.3
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Webssh
Package Ecosystem PyPI
Published Date
Last Updated

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

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
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-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.

webssh fixed: 1.6.3
pip install webssh>=1.6.3
Verify Direct and Transitive Dependencies

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

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.

CVE-2025-7885 Affected Webssh Versions

1 component(s)
Fixed Versions:
1.6.3
Product / Package Ecosystem Affected Versions Fixed Version
webssh
PyPI
< 1.6.3
1.6.3

References

Frequently Asked Questions

What is CVE-2025-7885?
CVE-2025-7885 is a security vulnerability in Webssh involving WebSSH Cross-site Scripting vulnerability under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Webssh versions are affected?
Affected versions include releases prior to 1.6.3 across affected packages: webssh.
What version fixes CVE-2025-7885?
Upgrading to 1.6.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is webssh affected?
Yes, webssh is affected in releases prior to 1.6.3. Upgrade your dependency to 1.6.3 or later.
What is the CVSS score of CVE-2025-7885?
CVE-2025-7885 has a CVSS v3.1 base score of 4.3 (LOW) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N.
What CWE is associated with CVE-2025-7885?
CVE-2025-7885 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 PyPI dependencies for CVE-2025-7885?
Run the dependency tree command: 'pip show webssh'. 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-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"
  }
}