JavaScript Injection Vulnerability in Pacparser Package

pacparser Updated 02 Oct 2025

Summary

30/06/2023
N/A
No i
Medium
6.1

CVE-2023-37360: pacparser_find_proxy in Pacparser before 1.4.2 allows JavaScript injection, and possibly privilege escalation, when the attacker controls the URL (which may be realistic within enterprise security products). Affects pacparser versions < 0bf0636de624996fe202b51eec8a58abd774269e. No fix is published. 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 Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Pacparser is an open-source library used for parsing Proxy Auto-Configuration (PAC) files, which are scripts that help web browsers determine whether to send web traffic directly or through a proxy server. The library is widely utilized in various applications and enterprise security products to manage network traffic efficiently. However, a vulnerability has been identified in versions prior to 1.4.2 that allows for JavaScript injection, potentially leading to privilege escalation if an attacker can control the URL.

Vulnerability Detail

The vulnerability, identified as CVE-2023-37360, arises from the function 'pacparser_find_proxy' in Pacparser versions before 1.4.2. This flaw allows attackers to inject malicious JavaScript into the PAC file, which can be exploited to escalate privileges within the application. The risk is particularly pronounced in enterprise environments where URLs may be controlled by malicious actors, leading to unauthorized access and manipulation of sensitive data.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

If immediate upgrading is not feasible, consider implementing strict input validation on URLs processed by the Pacparser to mitigate the risk of JavaScript injection. Additionally, restrict access to the PAC files to trusted sources only.

Conclusion

The CVE-2023-37360 vulnerability in the Pacparser package poses a significant risk due to its potential for JavaScript injection and privilege escalation. It is crucial for users of the library to update to the latest version to mitigate these risks and ensure the security of their applications.

See every vulnerability recorded for pacparser →

Share this vulnerability

FAQ

CVE-2023-37360 is a vulnerability in the Pacparser library that allows for JavaScript injection, potentially leading to privilege escalation.

Versions of Pacparser prior to 1.4.2 are affected by this vulnerability.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

The CVSS score for this vulnerability is 6.1, indicating a medium severity level.

If you cannot upgrade immediately, implement strict input validation on URLs and restrict access to PAC files to trusted sources.

Related vulnerabilities

Recent vulnerabilities recorded for pacparser.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. 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