CVE-2022-4730 Graphite Web Absolute Time Range cross site scripting

Low 3.5 Published Updated

Remote attackers can execute arbitrary scripts in Graphite Web via the Absolute Time Range handler, potentially compromising user sessions and data.

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-4730?

CVE-2022-4730 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 was found in Graphite Web. It has been classified as problematic. Affected is an unknown function of the component Absolute Time Range Handler. The manipulation leads to cross site scripting. It is possible to launch the attack 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. The identifier of this vulnerability is VDB-216744.

Weakness: CWE-79, CWE-707

Which versions are affected by CVE-2022-4730?

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-4730?

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-4730 being exploited?

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

Sources

Also known as DEBIAN-CVE-2022-4730, GHSA-m973-4vpc-x43c, PYSEC-2026-819, UBUNTU-CVE-2022-4730.

Is CVE-2022-4730 in your software?

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

Check your SBOMs for free