Single quotes not escaped in Web::Simple HTML::Tags output enable XSS
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA. Impact type from CWE-79.
Summary
Web::Simple for Perl before 0.037 does not escape single quotes in HTML::Tags output. HTML::Tags and XML::Tags replace only ampersand, double quote, less-than and greater-than when escaping plain strings, so a value placed inside a single-quoted attribute can close the attribute and add an event handler. An attacker who controls a value that an application interpolates into a single-quoted attribute can inject script into the generated page (CWE-79). Double-quoted attributes are not affected.
Written with Claude Haiku 5.5 from the sources below · 2026-11-16
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | Web-Simple | before 0.037 | 0.037 | Patch available | CNA |
- Web-Simple Vendor— Affected before 0.037 Fixed in 0.037 Patch available CNA
Remediation
Upgrade Web-Simple to version 0.037 or later, which fixes the flaw.
Written with Claude Haiku 5.5 from the sources below · 2026-11-16
- Fix · CNA Web-Simple Fixed in 0.037
Timeline
- 2026-11-10 Threatist record created from CVE-2026-120212
- 2026-11-10 Alias added: GHSA-3xh6-x477-72h3
- 2026-11-16 CVSS score added · CISA ADP
- 2026-11-16 CISA SSVC decision points changed
References
Sources
- CVE-2026-120212 · CVE Program
- CVE-2026-120212 · NVD
- FIRST EPSS
- GHSA-3xh6-x477-72h3 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences