CVE-2010-2477: Paste Cross-Site Scripting Vulnerability

MODERATE
Advisory Identifier: GHSA-7gfc-2v6g-6w9f
CVSS 6.1
CWE-79
Published
Advisory Summary

CVE-2010-2477 is a MODERATE (CVSS 6.1) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Paste libraries in the PyPI ecosystem. The issue involves paste is vulnerable to cross-site scripting via vectors involving a 404 status code. Remediation is available by upgrading affected packages to version 1.7.4.

CVE-2010-2477 at a Glance

CVE Identifier CVE-2010-2477
GHSA Identifier GHSA-7gfc-2v6g-6w9f
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 Paste
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-2477

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

paste fixed: 1.7.4
pip install paste>=1.7.4
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 paste

How to Check if You Are Affected

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

pip show paste

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

Note: The pip show paste 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 Paste, 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 the paste.httpexceptions implementation in Paste before 1.7.4 allow remote attackers to inject arbitrary web script or HTML via vectors involving a 404 status code, related to (1) paste.urlparser.StaticURLParser, (2) paste.urlparser.PkgResourcesParser, (3) paste.urlmap.URLMap, and (4) HTTPNotFound.

CVE-2010-2477 Affected Paste Versions

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

References

Frequently Asked Questions

What is CVE-2010-2477?
CVE-2010-2477 is a security vulnerability in Paste involving Paste is vulnerable to Cross-site Scripting via vectors involving a 404 status code under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Paste versions are affected?
Affected versions include releases prior to 1.7.4 across affected packages: paste.
What version fixes CVE-2010-2477?
Upgrading to 1.7.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is paste affected?
Yes, paste is affected in releases prior to 1.7.4. Upgrade your dependency to 1.7.4 or later.
What is the CVSS score of CVE-2010-2477?
CVE-2010-2477 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-2477?
CVE-2010-2477 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-2477?
Run the dependency tree command: 'pip show paste'. 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-7gfc-2v6g-6w9f",
  "modified" : "2024-10-09T20:31:24Z",
  "published" : "2022-05-17T05:45:29Z",
  "aliases" : [ "CVE-2010-2477" ],
  "summary" : "Paste is vulnerable to Cross-site Scripting via vectors involving a 404 status code",
  "details" : "Multiple cross-site scripting (XSS) vulnerabilities in the paste.httpexceptions implementation in Paste before 1.7.4 allow remote attackers to inject arbitrary web script or HTML via vectors involving a 404 status code, related to (1) paste.urlparser.StaticURLParser, (2) paste.urlparser.PkgResourcesParser, (3) paste.urlmap.URLMap, and (4) HTTPNotFound.",
  "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:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "paste"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.7.4"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2010-2477"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/cdent/paste/commit/4910493c62f369a3222357af09450930e4c93f5e"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/cdent/paste"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/paste/PYSEC-2010-29.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20111227133546/http://secunia.com/advisories/42500"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20120527154041/http://www.securityfocus.com/bid/41160"
  }, {
    "type" : "WEB",
    "url" : "http://bitbucket.org/ianb/paste/changeset/fcae59df8b56"
  }, {
    "type" : "WEB",
    "url" : "http://groups.google.com/group/paste-users/browse_thread/thread/3b3fff3dadd0b1e5?pli=1"
  }, {
    "type" : "WEB",
    "url" : "http://groups.google.com/group/pylons-discuss/msg/8c256dc076a408d8?dmode=source&output=gplain"
  }, {
    "type" : "WEB",
    "url" : "http://marc.info/?l=oss-security&m=127785414818815&w=2"
  }, {
    "type" : "WEB",
    "url" : "http://marc.info/?l=oss-security&m=127792576822169&w=2"
  }, {
    "type" : "WEB",
    "url" : "http://pylonshq.com/articles/archives/2010/6/paste_174_released_addresses_xss_security_hole"
  }, {
    "type" : "WEB",
    "url" : "http://www.ubuntu.com/usn/USN-1026-1"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-02-08T15:52:05Z",
    "nvd_published_at" : "2010-11-06T00:00:00Z"
  }
}