CVE-2022-4728 Graphite Web Cookie cross site scripting

Low 3.5 Published Updated

Remote attackers can execute arbitrary scripts in Graphite Web via a cross-site scripting vulnerability in the cookie handler.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2022-4728?

CVE-2022-4728 is a low-severity cross-site scripting vulnerability in Graphite Web, published on 24 Dec 2022. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

A vulnerability has been found in Graphite Web and classified as problematic. This vulnerability affects unknown code of the component Cookie Handler. The manipulation leads to cross site scripting. The attack can be initiated remotely. The exploit has been disclosed to the public and may be used. The name of the patch is 2f178f490e10efc03cd1d27c72f64ecab224eb23. It is recommended to apply a patch to fix this issue. VDB-216742 is the identifier assigned to this vulnerability.

Weakness: CWE-79, CWE-707

Which versions are affected by CVE-2022-4728?

3 open source packages ship an affected version, including graphite-web. It affects 1 product.

PackageAffectedFixed in
graphite-web PyPIAll versions to 1.1.10None
graphite-web PyPIAll versions to 1.1.10None
graphite-web PyPIAll versions to 1.1.10None

Products include Graphite Project Graphite.

How do I fix CVE-2022-4728?

Apply the vendor's patch.

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-2022-4728 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-4728 exists.

Sources

Also known as DEBIAN-CVE-2022-4728, GHSA-3c5x-4hvx-qrrr, PYSEC-2026-818, UBUNTU-CVE-2022-4728.

Is CVE-2022-4728 in your software?

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

Check your SBOMs for free