CVE-2008-0781: Moin Cross-Site Scripting Vulnerability

MODERATE
Advisory Identifier: GHSA-775g-4482-pm94
CWE-79
Published
Advisory Summary

CVE-2008-0781 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 multiple cross-site scripting (xss) vulnerabilities. Remediation is available in the latest vendor maintenance releases.

CVE-2008-0781 at a Glance

CVE Identifier CVE-2008-0781
GHSA Identifier GHSA-775g-4482-pm94
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-2008-0781

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: Latest secure release
pip install moin>=Latest secure release
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-2008-0781, 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 the patched release), 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 `action/AttachFile.py` in MoinMoin 1.5.8 and earlier allow remote attackers to inject arbitrary web script or HTML via (1) message, (2) pagename, and (3) target filenames. The issue was fixed on [db212dfc58ef](http://hg.moinmo.in/moin/1.5/rev/db212dfc58ef).

CVE-2008-0781 Affected Moin Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
moin
PyPI
≤ 1.5.8

References

Frequently Asked Questions

What is CVE-2008-0781?
CVE-2008-0781 is a security vulnerability in Moin involving MoinMoin Multiple cross-site scripting (XSS) vulnerabilities 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 current release patches across affected packages: moin.
What version fixes CVE-2008-0781?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is moin affected?
Yes, moin is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What CWE is associated with CVE-2008-0781?
CVE-2008-0781 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-2008-0781?
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-775g-4482-pm94",
  "modified" : "2024-05-14T20:41:29Z",
  "published" : "2022-05-01T23:33:02Z",
  "aliases" : [ "CVE-2008-0781" ],
  "summary" : "MoinMoin Multiple cross-site scripting (XSS) vulnerabilities",
  "details" : "Multiple cross-site scripting (XSS) vulnerabilities in `action/AttachFile.py` in MoinMoin 1.5.8 and earlier allow remote attackers to inject arbitrary web script or HTML via (1) message, (2) pagename, and (3) target filenames. The issue was fixed on [db212dfc58ef](http://hg.moinmo.in/moin/1.5/rev/db212dfc58ef).",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "moin"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "1.5.8"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2008-0781"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=432748"
  }, {
    "type" : "WEB",
    "url" : "https://usn.ubuntu.com/716-1"
  }, {
    "type" : "WEB",
    "url" : "https://www.redhat.com/archives/fedora-package-announce/2008-February/msg00726.html"
  }, {
    "type" : "WEB",
    "url" : "https://www.redhat.com/archives/fedora-package-announce/2008-February/msg00752.html"
  }, {
    "type" : "WEB",
    "url" : "http://hg.moinmo.in/moin/1.5/rev/db212dfc58ef"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/28987"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/29010"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/29262"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/29444"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/33755"
  }, {
    "type" : "WEB",
    "url" : "http://www.debian.org/security/2008/dsa-1514"
  }, {
    "type" : "WEB",
    "url" : "http://www.gentoo.org/security/en/glsa/glsa-200803-27.xml"
  }, {
    "type" : "WEB",
    "url" : "http://www.securityfocus.com/bid/27904"
  }, {
    "type" : "WEB",
    "url" : "http://www.vupen.com/english/advisories/2008/0569/references"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-05-14T20:41:29Z",
    "nvd_published_at" : "2008-02-14T21:00:00Z"
  }
}