CVE-2024-9427 Koji: escape html tag characters in the query string

Medium 5.4 Published Updated

An attacker can inject malicious JavaScript via unsanitized query strings in Koji, potentially bypassing existing XSS protections.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2024-9427?

CVE-2024-9427 is a medium-severity cross-site scripting vulnerability in koji, published on 24 Dec 2024. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

A vulnerability in Koji was found. An unsanitized input allows for an XSS attack. Javascript code from a malicious link could be reflected in the resulting web page. It is not expected to be able to submit an action or make a change in Koji due to existing XSS protections in the code

Weakness: CWE-116

Which versions are affected by CVE-2024-9427?

7 open source packages ship an affected version, including koji.

PackageAffectedFixed in
koji PyPIAll versions1.33.2, 1.34.3, 1.35.1
koji PyPIAll versions1.33.2
koji PyPIAll versions1.33.2
koji PyPIFrom 1.34.01.34.3
koji PyPIFrom 1.34.01.34.3
koji PyPIFrom 1.35.01.35.1
1 more packages
koji PyPIFrom 1.35.01.35.1

How do I fix CVE-2024-9427?

Upgrade koji to a fixed version for your release line: 1.33.2, 1.34.3 or 1.35.1.

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-2024-9427 being exploited?

There is no known exploitation of CVE-2024-9427 in the wild and no public exploit code.

Sources

Also known as GHSA-g2vg-8hfg-79vj, PYSEC-2026-1501, UBUNTU-CVE-2024-9427.

Is CVE-2024-9427 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free