CVE-2007-0901: Moin Cross-Site Scripting Vulnerability

MODERATE
Advisory Identifier: GHSA-9gj2-ph57-56f5
CWE-79
Published
Advisory Summary

CVE-2007-0901 is a MODERATE cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Moin libraries in the PyPI ecosystem. The issue involves moinmoin cross-site scripting (xss) vulnerability via hitcounts and general parameters. Remediation is available by upgrading affected packages to version 1.5.8.

CVE-2007-0901 at a Glance

CVE Identifier CVE-2007-0901
GHSA Identifier GHSA-9gj2-ph57-56f5
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Moin
Package Ecosystem PyPI
Published Date
Last Updated

How to Fix CVE-2007-0901

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

Moin fixed: 1.5.8
pip install Moin>=1.5.8
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 Moin

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2007-0901, inspect your installed packages using pip:

pip show Moin

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

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

Multiple cross-site scripting (XSS) vulnerabilities in Info pages in MoinMoin 1.5.7 allow remote attackers to inject arbitrary web script or HTML via the (1) hitcounts and (2) general parameters, different vectors than CVE-2007-0857. NOTE: the provenance of this information is unknown; the details are obtained solely from third party information.

CVE-2007-0901 Affected Moin Versions

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

References

Frequently Asked Questions

What is CVE-2007-0901?
CVE-2007-0901 is a security vulnerability in Moin involving MoinMoin Cross-Site Scripting (XSS) vulnerability via hitcounts and general parameters under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Moin versions are affected?
Affected versions include releases prior to 1.5.8 across affected packages: Moin.
What version fixes CVE-2007-0901?
Upgrading to 1.5.8 (or the latest patched release for your respective branch) resolves the vulnerability.
Is Moin affected?
Yes, Moin is affected in releases prior to 1.5.8. Upgrade your dependency to 1.5.8 or later.
What CWE is associated with CVE-2007-0901?
CVE-2007-0901 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-2007-0901?
Run the dependency tree command: 'pip show Moin'. 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-9gj2-ph57-56f5",
  "modified" : "2023-10-17T13:39:29Z",
  "published" : "2022-05-01T17:47:55Z",
  "aliases" : [ "CVE-2007-0901" ],
  "summary" : "MoinMoin Cross-Site Scripting (XSS) vulnerability via hitcounts and general parameters",
  "details" : "Multiple cross-site scripting (XSS) vulnerabilities in Info pages in MoinMoin 1.5.7 allow remote attackers to inject arbitrary web script or HTML via the (1) hitcounts and (2) general parameters, different vectors than CVE-2007-0857.  NOTE: the provenance of this information is unknown; the details are obtained solely from third party information.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "Moin"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.5.8"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 1.5.7"
    }
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2007-0901"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/moinwiki/moin"
  }, {
    "type" : "WEB",
    "url" : "https://moinmo.in/MoinMoinRelease1.5/CHANGES"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20070214032031/http://secunia.com/advisories/24138"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20070227204439/http://secunia.com/advisories/24244"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20080516214454/http://www.securityfocus.com/bid/22515"
  }, {
    "type" : "WEB",
    "url" : "http://www.ubuntu.com/usn/usn-423-1"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-10-17T10:43:32Z",
    "nvd_published_at" : "2007-02-13T20:28:00Z"
  }
}