CVE-2010-2491: Roundup Cross-site Scripting (XSS) vulnerability
6.1
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.68801%
CWE
Published
5/17/2022
Updated
10/26/2024
KEV Status
No
Technology
Python
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
roundup | pip | < 1.4.14 | 1.4.14 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from improper output encoding in error handling:
- The commit diff shows
renderContext()
in client.py originally usedreturn '<strong>%s</strong>'%message
without escaping - The
message
variable contained user-controlled template names from the HTTP request - The patch added
cgi.escape()
to sanitize the output, confirming the lack of escaping was the root cause - XSS occurs when attackers inject malicious payloads through the template parameter, which gets reflected in error messages
- The exception handlers for NoTemplate and Unauthorised both needed escaping fixes, but only renderContext's HTML response path was directly exposed to external input