Cross-Site Scripting Vulnerability in Graphite Web: CVE-2022-4729

graphite-web Updated 02 Oct 2025

Summary

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

CVE-2022-4729: A vulnerability was 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 a powerful web-based interface for the Graphite monitoring system, which is used to visualize time-series data. It allows users to create graphs and dashboards from data collected by Graphite. The application is designed to be flexible and user-friendly, providing various features for data visualization and management. However, it has been found to be vulnerable to a cross-site scripting (XSS) attack, which can compromise the security of users interacting with the application.

Vulnerability Detail

CVE-2022-4729 is a cross-site scripting vulnerability found in the Template Name Handler component of Graphite Web. This vulnerability arises from improper handling of user input, allowing attackers to inject malicious scripts that can be executed in the context of the user's browser. The potential ramifications include unauthorized access to sensitive user information, session hijacking, and the ability to perform actions on behalf of the user. The vulnerability is classified as problematic and can be exploited remotely, making it a significant security concern for users of the application.

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 measures to mitigate the risk of XSS attacks. Ensure that user inputs are properly encoded before being rendered in the browser. This can be done using libraries such as DOMPurify in JavaScript to sanitize HTML inputs.

Conclusion

CVE-2022-4729 represents a significant security risk for users of Graphite Web due to its potential for cross-site scripting attacks. It is crucial for users to apply the recommended patch promptly to safeguard their applications and user data. Utilizing tools like Vulert can further enhance security by providing real-time monitoring for vulnerabilities.

See every vulnerability recorded for graphite-web →

Share this vulnerability

FAQ

CVE-2022-4729 is a cross-site scripting vulnerability in Graphite Web that allows attackers to inject malicious scripts into web pages viewed by users.

You can check if your application is affected by using the Vulert playground at Vulert Scanner, which allows you to monitor for open-source vulnerabilities without requiring signup.

The vulnerability can lead to unauthorized access to user data, session hijacking, and the execution of malicious actions on behalf of users.

Upgrade your Graphite Web installation to version 1.1.8-1.1 or later, following the steps outlined in the 'how to fix' section.

Vulert is a service that monitors and alerts for open-source vulnerabilities in software using a manifest file like package-lock.json. It provides real-time alerts without requiring access to the code or installation.

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