Cross-Site Scripting Vulnerability in Graphite Web Cookie Handler

graphite-web Updated 02 Oct 2025

Summary

27/12/2022
N/A
Yes i
Medium
5.4

CVE-2022-4728: A vulnerability has been found in Graphite Web and classified as problematic. Affects graphite-web across 2 version ranges.

< 1.1.8-1.1 < 2f178f490e10efc03cd1d27c72f64ecab224eb23

Fixed in 1.1.8-1.1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

Graphite Web is an open-source web application that provides a powerful interface for storing and visualizing time-series data. It is widely used for monitoring and graphing metrics, making it an essential tool for system administrators and developers. The application relies on various components, including a Cookie Handler, which is responsible for managing user sessions and authentication. However, a recently discovered vulnerability in the Cookie Handler exposes the application to cross-site scripting (XSS) attacks, potentially compromising user data and session integrity.

Vulnerability Detail

A vulnerability has been identified in Graphite Web that affects the Cookie Handler component. This issue allows attackers to execute arbitrary JavaScript code in the context of a user's session through cross-site scripting. The vulnerability can be exploited remotely, meaning that an attacker does not need direct access to the affected system to initiate an attack. The exploit has been publicly disclosed, increasing the urgency for users to address this issue. The vulnerability is tracked under CVE-2022-4728 and has a CVSS score of 5.4, indicating a moderate level of risk.

How To Fix

Minimum fixed version

1.1.8-1.1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade graphite-web

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If immediate patching is not possible, consider implementing input validation and sanitization on user inputs to mitigate the risk of XSS attacks. Additionally, restrict access to the application to trusted users only until the patch can be applied.

Conclusion

The vulnerability CVE-2022-4728 in Graphite Web poses a significant risk due to its potential for cross-site scripting attacks. Users are strongly advised to apply the available patch to secure their applications. In the meantime, implementing workarounds can help mitigate risks until the patch is applied.

See every vulnerability recorded for graphite-web →

Share this vulnerability

FAQ

CVE-2022-4728 is a vulnerability in Graphite Web that allows for cross-site scripting attacks through the Cookie Handler component.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.

Exploitation of this vulnerability can lead to unauthorized access to user sessions, data theft, and the execution of malicious scripts in the context of the affected application.

Yes, a patch has been released and can be applied using the commit hash 2f178f490e10efc03cd1d27c72f64ecab224eb23.

If you cannot apply the patch right away, implement input validation and restrict access to the application as a temporary measure.

Related vulnerabilities

Recent vulnerabilities recorded for graphite-web.

How To Fix

Minimum fixed version

1.1.8-1.1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade graphite-web

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback