Vulnerabilities in pkg:pypi/malojaserver

PACKAGE
Advisory Summary

GHSA-4h72-34j6-j8x7 is a MODERATE (CVSS 5.4) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Malojaserver libraries in the PyPI ecosystem. The issue involves maloja error page xss vulnerability. Remediation is available by upgrading affected packages to version 3.2.2.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/malojaserver

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:pypi/malojaserver. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-4h72-34j6-j8x7 - MODERATE Maloja error page XSS vulnerability

GHSA-4h72-34j6-j8x7 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-4h72-34j6-j8x7
Severity MODERATE
CVSS v3.1 Base Score 5.4
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Malojaserver
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 5.4

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:L/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 Low (C:L)
Integrity Low (I:L)
Availability None (A:N)

How to Fix GHSA-4h72-34j6-j8x7

To remediate this vulnerability, upgrade all affected Malojaserver dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

malojaserver fixed: 3.2.2
pip install malojaserver>=3.2.2
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 malojaserver

How to Check if You Are Affected

To determine whether your Python environment is affected by GHSA-4h72-34j6-j8x7, inspect your installed packages using pip:

pip show malojaserver

Analyze the terminal output to locate any version of Malojaserver in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.2.2), your application is affected.

Note: The pip show malojaserver 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 Malojaserver, 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

### Impact The error page for a missing path echoes the path back to the user. If this contains HTML, an attacker could execute a script on the user's machine inside the Maloja context and perform authorized actions like scrobbling or deleting scrobbles. This does not affect the security of your server. The exploit is purely client-side. Since there is very little incentive to mess with your scrobble data and it requires very specific targeting (an attacker would have to send a user a link to their own server), the severity rating might be misleading. ### Patches The Vulnerability is patched in 3.2.2

GHSA-4h72-34j6-j8x7 Affected Malojaserver Versions

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

References

Frequently Asked Questions

What is GHSA-4h72-34j6-j8x7?
GHSA-4h72-34j6-j8x7 is a security vulnerability in Malojaserver involving Maloja error page XSS vulnerability under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Malojaserver versions are affected?
Affected versions include releases prior to 3.2.2 across affected packages: malojaserver.
What version fixes GHSA-4h72-34j6-j8x7?
Upgrading to 3.2.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is malojaserver affected?
Yes, malojaserver is affected in releases prior to 3.2.2. Upgrade your dependency to 3.2.2 or later.
What is the CVSS score of GHSA-4h72-34j6-j8x7?
GHSA-4h72-34j6-j8x7 has a CVSS v3.1 base score of 5.4 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N.
What CWE is associated with GHSA-4h72-34j6-j8x7?
GHSA-4h72-34j6-j8x7 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 GHSA-4h72-34j6-j8x7?
Run the dependency tree command: 'pip show malojaserver'. 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-4h72-34j6-j8x7",
  "modified" : "2023-12-18T19:31:12Z",
  "published" : "2023-12-18T19:31:12Z",
  "aliases" : [ ],
  "summary" : "Maloja error page XSS vulnerability",
  "details" : "### Impact\nThe error page for a missing path echoes the path back to the user. If this contains HTML, an attacker could execute a script on the user's machine inside the Maloja context and perform authorized actions like scrobbling or deleting scrobbles.\nThis does not affect the security of your server. The exploit is purely client-side.\nSince there is very little incentive to mess with your scrobble data and it requires very specific targeting (an attacker would have to send a user a link to their own server),  the severity rating might be misleading.\n\n### Patches\nThe Vulnerability is patched in 3.2.2\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "malojaserver"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.2.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/krateng/maloja/security/advisories/GHSA-4h72-34j6-j8x7"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/krateng/maloja/commit/febaff97228b37a192f2630aa331cac5e5c3e98e"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/krateng/maloja"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-12-18T19:31:12Z",
    "nvd_published_at" : null
  }
}