Cross-Site Scripting Vulnerability in Sarg Package

sarg Updated 02 Oct 2025

Summary

30/12/2009
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2008-7250: Cross-site scripting (XSS) vulnerability in Squid Analysis Report Generator (Sarg) 2.2.4 allows remote attackers to inject arbitrary web script or HTML via a JavaScript onload event in the User-Agent header, which is not... Affects sarg versions < 2.2.5-1. Fixed in 2.2.5-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 Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

Sarg (Squid Analysis Report Generator) is a tool that generates web usage reports from Squid proxy server logs. It provides detailed insights into user activity, bandwidth usage, and web traffic patterns. The package is widely used in network management and monitoring. However, it has been identified to have a vulnerability that allows attackers to exploit the User-Agent header, leading to potential security risks.

Vulnerability Detail

The vulnerability identified as CVE-2008-7250 is a Cross-Site Scripting (XSS) flaw in Sarg version 2.2.4. This issue arises from improper handling of the User-Agent header, which allows remote attackers to inject arbitrary web scripts or HTML. The vulnerability exists due to an incomplete fix for a previous issue (CVE-2008-1168), making it possible for attackers to manipulate the display of the Squid proxy log, potentially leading to unauthorized actions or data exposure.

How To Fix

Minimum fixed version

2.2.5-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade sarg

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

Workaround

As a temporary workaround, users can sanitize the User-Agent header input to prevent the execution of malicious scripts. However, this is not a permanent solution and updating the package is strongly advised.

Conclusion

The CVE-2008-7250 vulnerability in the Sarg package poses significant security risks due to its XSS nature. It is crucial for users to update to the patched version 2.2.5-1 to safeguard against potential attacks. Monitoring tools like Vulert can assist in identifying such vulnerabilities in your software.

See every vulnerability recorded for sarg →

Share this vulnerability

FAQ

The impact includes the potential for remote attackers to execute arbitrary scripts, leading to data theft or unauthorized actions on behalf of the user.

You can check your version of Sarg by running 'sarg -v' in the terminal. If it is below 2.2.5-1, it is vulnerable.

Yes, you can use Vulert, which monitors open-source vulnerabilities in your software using a manifest file like package-lock.json. You can check your application for vulnerabilities without any signup at the Vulert playground.

If immediate updates are not possible, ensure to implement input sanitization as a temporary measure to mitigate the risk until the package can be updated.

More information can be found in the official CVE database or by visiting the Debian security advisories related to Sarg.

Related vulnerabilities

Recent vulnerabilities recorded for sarg.

How To Fix

Minimum fixed version

2.2.5-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade sarg

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