Vulnerabilities in pkg:pypi/malojaserver
PACKAGEGHSA-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.
pkg:pypi/malojaserver
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
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).
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.
pip install malojaserver>=3.2.2
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
GHSA-4h72-34j6-j8x7 Affected Malojaserver Versions
1 component(s)| 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?
Which Malojaserver versions are affected?
What version fixes GHSA-4h72-34j6-j8x7?
Is malojaserver affected?
What is the CVSS score of GHSA-4h72-34j6-j8x7?
What CWE is associated with GHSA-4h72-34j6-j8x7?
How can I check PyPI dependencies for GHSA-4h72-34j6-j8x7?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}