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

paste Updated 02 Oct 2025

Summary

06/11/2010
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2010-2477: 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,... Affects paste versions < 1.7.4-1. Fixed in 1.7.4-1. How to fix ↓

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

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

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

The Paste package is a Python web framework that provides various utilities for web application development. It includes components for URL parsing, exception handling, and more. However, prior to version 1.7.4, it was found to be vulnerable to multiple cross-site scripting (XSS) attacks, which could allow attackers to inject malicious scripts into web applications using Paste.

Vulnerability Detail

The vulnerability, identified as CVE-2010-2477, arises from multiple cross-site scripting (XSS) flaws in the paste.httpexceptions implementation. These flaws allow remote attackers to inject arbitrary web scripts or HTML into responses, particularly when a 404 status code is returned. The affected components include paste.urlparser.StaticURLParser, paste.urlparser.PkgResourcesParser, paste.urlmap.URLMap, and HTTPNotFound. If exploited, this vulnerability could lead to unauthorized actions being performed on behalf of users or the exposure of sensitive information.

How To Fix

Minimum fixed version

1.7.4-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade paste

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

Workaround

If immediate updating is not feasible, consider implementing input validation and sanitization on user inputs to mitigate the risk of XSS attacks. Additionally, you can configure your web application to handle 404 errors more securely, avoiding the exposure of sensitive information.

Conclusion

The CVE-2010-2477 vulnerability in the Paste package poses a significant risk due to its potential for cross-site scripting attacks. It is crucial for users of the affected versions to update to version 1.7.4 or later to mitigate this risk. Additionally, employing best practices for input handling can further enhance security.

See every vulnerability recorded for paste →

Share this vulnerability

FAQ

CVE-2010-2477 is a security vulnerability in the Paste package that allows for cross-site scripting (XSS) attacks.

You can check if your application is affected by using the Vulert playground at Vulert Scanner, which analyzes your manifest file for vulnerabilities.

Exploiting this vulnerability could allow attackers to execute malicious scripts in the context of a user's session, potentially leading to data theft or unauthorized actions.

Yes, the vulnerability is fixed in Paste version 1.7.4 and later. Updating to this version will resolve the issue.

If you cannot update right away, implement input validation and sanitization, and review your error handling to minimize exposure to XSS attacks.

Related vulnerabilities

Recent vulnerabilities recorded for paste.

How To Fix

Minimum fixed version

1.7.4-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade paste

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