Quick answers
- Is CVE-2022-4728 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2022-4728 being exploited in the wild.
- How severe is CVE-2022-4728?
- Low severity, with a CVSS score of 3.1, published 7 July 2026.
- Which products and versions are affected?
- graphite-web (PyPI) ECOSYSTEM:introduced=0,last_affected=1.1.10.
- Is there a fix for CVE-2022-4728?
- A patch was published on 2022-12-27: Patch commit 2f178f490e10efc03cd1d27c72f64ecab224eb23 available Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2022-4728 attacked?
- It is attacked over the network, in a web application.
- Am I affected by CVE-2022-4728?
- Check whether you run graphite-web (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
Technical details
The vulnerability is a stored XSS flaw (CWE-79) in Graphite Web's Cookie Handler component, specifically in how the "Relative Time Range" parameter is processed and stored in the browser cookie `ys-defaultGraphParams`. The vulnerable code fails to properly sanitize or escape user-supplied input before storing it in the cookie and rendering it in the DOM. An attacker can inject arbitrary HTML and JavaScript payloads via the time range UI, which are then persisted in the cookie and executed whenever the dashboard is accessed. This requires an attacker to trick or socially engineer a user into visiting a malicious Graphite instance or modifying settings on an accessible instance. The vulnerability affects versions 0.9.5 through 1.1.10, and a patch (commit 2f178f490e10efc03cd1d27c72f64ecab224eb23) is available.
Affected products
- Graphite Project Graphite Web 0.9.5 through 1.1.10
Identifiers
- CVE-2022-4728
- GHSA-3c5x-4hvx-qrrr
- PYSEC-2026-818
Timeline
- 2022-04-13: disclosed: Vulnerability reported in GitHub issue #2744
- 2022-12-27: advisory: GHSA-3c5x-4hvx-qrrr published
- 2022-12-27: patched: Patch commit 2f178f490e10efc03cd1d27c72f64ecab224eb23 available