CVE-2009-4924 Cross-site Scripting in python-cjson
Remote attackers can exploit improper handling of forward slashes in cjson.encode to conduct cross-site scripting attacks against Firefox users.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2009-4924?
CVE-2009-4924 is a medium-severity cross-site scripting vulnerability in n/a, published on 2 Jul 2010. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
Dan Pascu python-cjson 1.0.5 does not properly handle a ['/'] argument to cjson.encode, which makes it easier for remote attackers to conduct certain cross-site scripting (XSS) attacks involving Firefox and the end tag of a SCRIPT element.
Weakness: CWE-79
Which versions are affected by CVE-2009-4924?
3 open source packages ship an affected version, including python-cjson. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
python-cjson PyPI | All versions | 1.1.0 |
python-cjson PyPI | All versions | 1.1.0 |
python-cjson PyPI | All versions | 1.1.0 |
Products include Dan Pascu Python-Cjson.
How do I fix CVE-2009-4924?
Upgrade python-cjson to 1.1.0 or later.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2009-4924 being exploited?
There is no known exploitation of CVE-2009-4924 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as GHSA-95jp-77w6-qj52, PYSEC-2010-26.