CVE-2022-4728
Python vulnerability analysis and mitigation

Overview

A cross-site scripting (XSS) vulnerability was discovered in Graphite Web affecting the Cookie Handler component. The vulnerability, identified as CVE-2022-4728, was disclosed in December 2022. This security issue affects the dashboard functionality of Graphite Web, particularly in the handling of time range text fields and dashboard queries (NVD, Ubuntu Notice).

Technical details

The vulnerability stems from improper input validation in the Cookie Handler component, specifically in the handling of time range text fields and dashboard queries. The issue allows for manipulation of input that can lead to cross-site scripting attacks. The vulnerability has been assigned a CVSS v3.1 base score of 5.4 (Medium) with the vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N, indicating network accessibility with low attack complexity and requiring user interaction (NVD).

Impact

If exploited, this vulnerability could allow attackers to perform cross-site scripting attacks through specially crafted inputs. The impact primarily affects the confidentiality and integrity of the application, potentially allowing attackers to obtain sensitive information or execute arbitrary JavaScript code in the context of other users' browsers (Ubuntu Notice).

Exploitability

The vulnerability has been publicly disclosed and can be exploited remotely. A proof-of-concept exploit exists that involves manipulating the 'Relative Time Range' feature in the dashboard interface. The exploit can be triggered by entering malicious input in the 'Show the past' field, which gets stored in the ys-defaultGraphParams cookie (GitHub Issue).

Mitigation and workarounds

The vulnerability has been patched in Graphite Web with commit 2f178f490e10efc03cd1d27c72f64ecab224eb23. The fix includes input validation and sanitization for time range text fields and dashboard queries. Ubuntu has released security updates for affected versions: Ubuntu 22.04 (1.1.8-1ubuntu0.22.04.1), Ubuntu 20.04 (1.1.4-5ubuntu0.1), and Ubuntu 18.04 (1.0.2+debian-2ubuntu0.1~esm1) (GitHub PR, Ubuntu Notice).

Additional resources


SourceThis report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-48039CRITICAL9.1
  • Python logoPython
  • meta-ads-mcp
NoYesAug 07, 2026
CVE-2026-48169HIGH8.8
  • Python logoPython
  • praisonai-platform
NoYesAug 07, 2026
GHSA-wvpp-8hx9-p66jHIGH8.8
  • Python logoPython
  • gitpython
NoYesAug 07, 2026
CVE-2026-71870MEDIUM4.8
  • Python logoPython
  • pypdf
NoYesAug 07, 2026
CVE-2026-71852MEDIUM4.8
  • Python logoPython
  • pypdf
NoYesAug 07, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management