CVE Database›Document archive›CVE-2026-120643

CVE-2026-120643

perl-CGI: perl-CGI: Cross-site scripting via unescaped apostrophes in generated URLs

Loading…

Severity

Moderate

Red Hat Product Security

6.1

CVSS 3.1

Review impact separately from score.

Published · November 4, 2026

Updated · November 4, 2026

Description

A flaw was found in perl-CGI. When constructing Uniform Resource Locators (URLs), the url() and self_url() functions fail to properly encode single quote characters in request paths or query parameters. A remote attacker can exploit this issue by submitting a crafted request to an application that embeds these URLs into single-quoted web page attributes or script blocks. This can result in cross-site scripting (XSS), allowing an attacker to execute malicious scripts in an affected user's browser and potentially access sensitive session data.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

No mitigation is specified in collected source.

CVSS / CWE

CVSS 3.1 · 6.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

CWE-79 · Improper Neutralization of Input During Web Page Generation