CVE-2010-2477: Cross-site Scripting Vulnerability in Paste

paste Updated 02 Oct 2025

Summary

17/05/2022
Yes i
Moderate
6.1

CVE-2010-2477: Paste is vulnerable to Cross-site Scripting via vectors involving a 404 status code. Affects paste versions < 1.7.4. Fixed in 1.7.4. How to fix ↓

Also tracked for

The same CVE-2010-2477 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Paste is a Python package available on PyPI that provides a framework for web development. It offers various utilities and components for building web applications. The vulnerability in Paste affects versions prior to 1.7.4. The package includes the paste.httpexceptions module, which is responsible for handling HTTP exceptions. This module is susceptible to multiple cross-site scripting (XSS) vulnerabilities when processing a 404 status code. The affected components include paste.urlparser.StaticURLParser, paste.urlparser.PkgResourcesParser, paste.urlmap.URLMap, and HTTPNotFound.

Vulnerability Detail

The vulnerability allows remote attackers to inject arbitrary web script or HTML into the application. By exploiting the XSS vulnerability, an attacker can execute malicious code within the context of the affected user's browser. This can lead to various security risks, such as session hijacking, data theft, or the manipulation of website content. The vulnerability is classified as CWE-79, which is the Common Weakness Enumeration identifier for cross-site scripting vulnerabilities.

How To Fix

Minimum fixed version

1.7.4

This is the first release that contains the fix.

pip install --upgrade "paste==1.7.4"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If upgrading to the latest version is not immediately feasible, a temporary workaround is to implement input sanitization and output encoding to prevent the execution of injected scripts. This can be achieved by using appropriate security libraries or frameworks that provide protection against XSS attacks. For example, developers can utilize the OWASP Java Encoder library in their code to sanitize user input and encode output to mitigate the risk of XSS vulnerabilities.

Conclusion

The vulnerability in Paste versions prior to 1.7.4 exposes web applications to cross-site scripting attacks. To mitigate this risk, it is crucial to upgrade to the latest version of the Paste package. Implementing input sanitization and output encoding can provide temporary protection until the upgrade is performed. For further assistance or support in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for paste →

Share this vulnerability

FAQ

The vulnerability allows attackers to inject malicious scripts or HTML into web applications, potentially leading to various security risks such as data theft, session hijacking, or website content manipulation.

Versions of Paste prior to 1.7.4 are affected by this vulnerability.

While specific exploits may not be publicly disclosed, the presence of the vulnerability increases the risk of successful attacks if not addressed.

Upgrading to Paste version 1.7.4 or later is the recommended mitigation. Additionally, implementing input sanitization and output encoding can provide temporary protection against the vulnerability.

For more information about this vulnerability, you can refer to the CVE-2010-2477 entry or the GitHub Security Advisory GHSA-7gfc-2v6g-6w9f.

Related vulnerabilities

Recent vulnerabilities recorded for paste.

How To Fix

Minimum fixed version

1.7.4

This is the first release that contains the fix.

pip install --upgrade "paste==1.7.4"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback