Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSupply crafted attribute value
-
DeliveryValue interpolated into single-quoted attribute
-
ExploitUnescaped single quote breaks out and injects event handler
-
ExecutionVictim loads generated page
-
ImpactInjected script executes in victim browser
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires a Web::Simple application (before 0.037) to interpolate an attacker-controlled value into a SINGLE-quoted HTML attribute via HTML::Tags/XML::Tags, e.g. <a href='$value'>; the pre-patch escaper only replaced &, ", < and > and left the single quote intact, so the value can close the attribute and add an event handler. Double-quoted attributes are explicitly NOT affected. Limiting factors: only the single-quoted-attribute coding pattern is vulnerable (not universal), the attacker must control the interpolated value, a victim must load the generated page (UI:R), and only versions prior to 0.037 are affected. The provided CVSS vector lists PR:L, indicating a low-privileged/authenticated context in the scoring source rather than fully unauthenticated access. |
| Impact | This is a moderate-severity, patch-this-month issue rather than an emergency. The input CVSS of 5.4 (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N) reflects a reflected/stored XSS with a scope change into the victim's browser, requiring low privileges and user interaction. All exploitation-probability signals are low and mutually consistent: EPSS is 0.22% (12th percentile), the CVE is NOT in CISA KEV, and no public exploit was identified - only the vendor patch commit and a regression test demonstrating the escaping gap. The vuln.today decision label is 'this_month', aligning with a genuine-but-non-urgent fix. A key limiting factor tempers the raw score: exploitation only works where an application interpolates attacker-controlled data into a SINGLE-quoted HTML attribute (double-quoted attributes are unaffected), which is not a universal coding pattern, so real-world exposure depends on how downstream Perl applications use HTML::Tags/XML::Tags. Note one data inconsistency: a cve.org reference in the input points to CVE-2026-5090, a different identifier than the analyzed CVE-2026-120212 - verify the cross-reference. Overall: a legitimate medium-priority XSS to patch on a normal cadence, not a widespread-exploitation crisis. |
| Exploit ScenarioDerived | An attacker submits a crafted value (e.g., via a URL parameter or form field) that a Web::Simple application renders into a single-quoted HTML attribute such as <a href='$value'> using HTML::Tags; because single quotes were not escaped before 0.037, the value closes the attribute and appends an event handler, and when a victim loads the resulting page the injected script executes in their browser. No public working exploit was identified at time of analysis - only the patch commit and a regression test illustrate the flaw. Because the provided CVSS lists PR:L and UI:R, exploitation reflects a low-privileged context plus victim interaction. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 16, 2026
Cross-site scripting in Web::Simple before 0.037 arises because the HTML::Tags and XML::Tags helpers do not escape single quotes when generating markup, so a value interpolated into a single-quoted attribute can close that attribute and add new ones such as event handlers. Applications are affected only when they place attacker-influenced data into single-quoted attributes; double-quoted attributes are explicitly unaffected, and a victim must load the generated page. No public exploit code has been identified at time of analysis, EPSS is 0.22% (12th percentile), and the vendor has released 0.037; the priority is patch this month rather than an emergency.
RemediationAI
Upgrade Web::Simple to 0.037 or later; the vendor-released patch is version 0.037, documented at https://metacpan.org/release/ETHER/Web-Simple-0.037/changes, and the upstream fix commit is https://github.com/p5sagit/Web-Simple/commit/de0b7743f7015ec2c1c678dfdaa4bc6f5ccfb640.patch. Where upgrading cannot be done immediately, audit application code for attacker-controlled values interpolated into single-quoted HTML attributes and either switch those attributes to double quotes, which the advisory states are not affected, or add explicit single-quote escaping before output; these code-level mitigations require locating every affected template and do not replace the vendor upgrade. The oss-security advisory is at https://seclists.org/oss-sec/2026/q4/635 and the NVD record is at https://nvd.nist.gov/vuln/detail/CVE-2026-120212.
Affected ProductsAI
Web::Simple versions before 0.037 for Perl are affected, specifically the HTML::Tags and XML::Tags helpers shipped in the distribution. No CPE string was included in the supplied intelligence. Vendor and advisory references include the MetaCPAN 0.037 changes page at https://metacpan.org/release/ETHER/Web-Simple-0.037/changes, the upstream patch at https://github.com/p5sagit/Web-Simple/commit/de0b7743f7015ec2c1c678dfdaa4bc6f5ccfb640.patch, the oss-security advisory at https://seclists.org/oss-sec/2026/q4/635, and the NVD record at https://nvd.nist.gov/vuln/detail/CVE-2026-120212.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Web::Simple is a Perl web framework, and its HTML::Tags and XML::Tags helpers serialize tag structures into HTML or XML strings. Before 0.037, the string-escaping routine replaced only ampersand, double quote, less-than and greater-than with entities and left the single quote unchanged, which is a CWE-79 input-neutralization failure in HTML generation. In the vulnerable coding pattern, an attacker-controlled value placed in a single-quoted attribute, for example <a href='$value'>, can terminate the attribute and append new attributes such as an event handler; double-quoted attributes are not affected. The supplied GitHub commit de0b7743f7015ec2c1c678dfdaa4bc6f5ccfb640.patch adds single-quote escaping and a regression test for a value containing an apostrophe, confirming the fix in the 0.037 release.
Know when Perl gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Standard reflected XSS: network-reachable, no attacker privileges to supply the value (PR:N), victim must load the page (UI:R), and script execution in the browser is a scope change with limited C/I and no availability impact.
Primary rating from Vendor (CPANSec).
CVSS VectorVendor: CPANSec
Lifecycle Timeline
2DescriptionCVE.org
Web::Simple versions before 0.037 for Perl do not escape single quotes in HTML::Tags output.
HTML::Tags and XML::Tags escape a plain string value by replacing only &, ", < and > with entities. A value interpolated into a single-quoted attribute, as in <a href='$value'>, can therefore close the attribute and add new ones, such as an event handler. Double-quoted attributes are not affected.
An attacker who controls a value that an application interpolates into a single-quoted attribute can inject script into the generated page.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
The _compile function in Maketext.pm in the Locale::Maketext implementation in Perl before 5.17.7 does not properly hand
Stack-based buffer overflow in the CPerlHost::Add method in win32/perlhost.h in Perl before 5.24.3-RC1 and 5.26.x before
The VDir::MapPathA and VDir::MapPathW functions in Perl 5.22 allow remote attackers to cause a denial of service (out-of
Perl before 5.26.3 has a buffer overflow via a crafted regular expression that triggers invalid write operations. Rated
Perl before 5.26.3 and 5.28.0 before 5.28.1 has a buffer overflow via a crafted regular expression that triggers invalid
Silently incorrect regular-expression matching in the Perl interpreter (all versions through 5.43.9) lets an oversized a
Perl before 5.26.3 has a buffer over-read via a crafted regular expression that triggers disclosure of sensitive informa
Perl might allow context-dependent attackers to bypass the taint protection mechanism in a child process via duplicate e
CPAN.pm before 2.35 does not verify TLS certificates when downloading distributions over HTTPS. Rated high severity (CVS
The XSLoader::load method in XSLoader in Perl does not properly locate .so files when called in a string eval, which mig
In Perl through 5.26.2, the Archive::Tar module allows remote attackers to bypass a directory-traversal protection mecha
Perl before 5.30.3 on 32-bit platforms allows a heap-based buffer overflow because nested regular expression quantifiers
EUVD-2026-121639
GHSA-3xh6-x477-72h3
NVD
CVE.org
EPSS
VulDB
Exploit-DB