CVE-2010-2970: Moin Cross-Site Scripting Vulnerability

MODERATE
Advisory Identifier: GHSA-gxh5-r8gp-pjc3
CVSS 6.1
CWE-79
Published
Advisory Summary

CVE-2010-2970 is a MODERATE (CVSS 6.1) 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. Remediation is available by upgrading affected packages to version 1.9.3.

CVE-2010-2970 at a Glance

CVE Identifier CVE-2010-2970
GHSA Identifier GHSA-gxh5-r8gp-pjc3
Severity MODERATE
CVSS v3.1 Base Score 6.1
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

Security Impact

CVSS: 6.1

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

How to Fix CVE-2010-2970

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.9.3
pip install Moin>=1.9.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 Moin

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2010-2970, 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.9.3), 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 MoinMoin 1.9.x before 1.9.3 allow remote attackers to inject arbitrary web script or HTML via crafted content, related to (1) action/SlideShow.py, (2) action/anywikidraw.py, and (3) action/language_setup.py, a similar issue to CVE-2010-2487.

CVE-2010-2970 Affected Moin Versions

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

References

Frequently Asked Questions

What is CVE-2010-2970?
CVE-2010-2970 is a security vulnerability in Moin involving MoinMoin cross-site scripting (XSS) vulnerability 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.9.3 across affected packages: Moin.
What version fixes CVE-2010-2970?
Upgrading to 1.9.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is Moin affected?
Yes, Moin is affected in releases prior to 1.9.3. Upgrade your dependency to 1.9.3 or later.
What is the CVSS score of CVE-2010-2970?
CVE-2010-2970 has a CVSS v3.1 base score of 6.1 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N.
What CWE is associated with CVE-2010-2970?
CVE-2010-2970 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-2010-2970?
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-gxh5-r8gp-pjc3",
  "modified" : "2024-09-25T20:30:10Z",
  "published" : "2022-05-17T05:49:23Z",
  "aliases" : [ "CVE-2010-2970" ],
  "summary" : "MoinMoin cross-site scripting (XSS) vulnerability ",
  "details" : "Multiple cross-site scripting (XSS) vulnerabilities in MoinMoin 1.9.x before 1.9.3 allow remote attackers to inject arbitrary web script or HTML via crafted content, related to (1) action/SlideShow.py, (2) action/anywikidraw.py, and (3) action/language_setup.py, a similar issue to CVE-2010-2487.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "Moin"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.9.0"
      }, {
        "fixed" : "1.9.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2010-2970"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/moinwiki/moin"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/moin/PYSEC-2010-18.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20140801154518/http://secunia.com/advisories/40836"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20200228150629/http://www.securityfocus.com/bid/40549"
  }, {
    "type" : "WEB",
    "url" : "http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=584809"
  }, {
    "type" : "WEB",
    "url" : "http://hg.moinmo.in/moin/1.9/raw-file/1.9.3/docs/CHANGES"
  }, {
    "type" : "WEB",
    "url" : "http://hg.moinmo.in/moin/1.9/rev/4fe9951788cb"
  }, {
    "type" : "WEB",
    "url" : "http://hg.moinmo.in/moin/1.9/rev/e50b087c4572"
  }, {
    "type" : "WEB",
    "url" : "http://marc.info/?l=oss-security&m=127799369406968&w=2"
  }, {
    "type" : "WEB",
    "url" : "http://marc.info/?l=oss-security&m=127809682420259&w=2"
  }, {
    "type" : "WEB",
    "url" : "http://moinmo.in/MoinMoinBugs/1.9.2UnescapedInputForThemeAddMsg"
  }, {
    "type" : "WEB",
    "url" : "http://moinmo.in/MoinMoinRelease1.9"
  }, {
    "type" : "WEB",
    "url" : "http://moinmo.in/SecurityFixes"
  }, {
    "type" : "WEB",
    "url" : "http://www.debian.org/security/2010/dsa-2083"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-02-08T15:42:32Z",
    "nvd_published_at" : "2010-08-05T13:22:00Z"
  }
}