{"id":"CVE-2026-120212","state":"PUBLISHED","title":"Web::Simple versions before 0.037 for Perl do not escape single quotes in HTML::Tags output","description":"Web::Simple versions before 0.037 for Perl do not escape single quotes in HTML::Tags output.\n\nHTML::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.\n\nAn attacker who controls a value that an application interpolates into a single-quoted attribute can inject script into the generated page.","publishedAt":"2026-11-10T17:42:05.207Z","updatedAt":"2026-11-16T17:17:57.632Z","severity":{"score":5.4,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","source":"CISA-ADP"},"assigner":"CPANSec","products":["Web-Simple"],"affected":[{"packageName":"Web-Simple","packageURL":"pkg:cpan/Web-Simple","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"0.037","versionType":"custom"}],"collectionURL":"https://cpan.org/modules","modules":["Web::Simple"],"programFiles":["lib/XML/Tags.pm"],"programRoutines":[{"name":"XML::Tags::to_xml_string"}],"repo":"https://github.com/p5sagit/Web-Simple"}],"references":["https://github.com/p5sagit/Web-Simple/commit/de0b7743f7015ec2c1c678dfdaa4bc6f5ccfb640.patch","https://metacpan.org/release/ETHER/Web-Simple-0.037/changes","https://www.cve.org/CVERecord?id=CVE-2026-5090"],"weaknesses":["CWE-79"],"ingestedAt":"2026-11-16T17:26:06.038Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/120xxx/CVE-2026-120212.json","commit":"1ec83d21f0ec0a646c3d153e86c6a8ae200a8228","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-120212","state":"PUBLISHED","datePublished":"2026-11-10T17:42:05.207Z","dateUpdated":"2026-11-16T17:17:57.632Z","assignerShortName":"CPANSec","assignerOrgId":"9b29abf9-4ab0-4765-b253-1875cd9b441e","dateReserved":"2026-10-31T13:26:38.835Z"},"containers":{"cna":{"title":"Web::Simple versions before 0.037 for Perl do not escape single quotes in HTML::Tags output","descriptions":[{"lang":"en","value":"Web::Simple versions before 0.037 for Perl do not escape single quotes in HTML::Tags output.\n\nHTML::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.\n\nAn attacker who controls a value that an application interpolates into a single-quoted attribute can inject script into the generated page."}],"affected":[{"packageName":"Web-Simple","packageURL":"pkg:cpan/Web-Simple","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"0.037","versionType":"custom"}],"collectionURL":"https://cpan.org/modules","modules":["Web::Simple"],"programFiles":["lib/XML/Tags.pm"],"programRoutines":[{"name":"XML::Tags::to_xml_string"}],"repo":"https://github.com/p5sagit/Web-Simple"}],"references":[{"url":"https://github.com/p5sagit/Web-Simple/commit/de0b7743f7015ec2c1c678dfdaa4bc6f5ccfb640.patch","tags":["patch"]},{"url":"https://metacpan.org/release/ETHER/Web-Simple-0.037/changes","tags":["release-notes"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-5090","tags":["related"]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-79","description":"CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"CPANSec","orgId":"9b29abf9-4ab0-4765-b253-1875cd9b441e","dateUpdated":"2026-11-10T17:42:05.207Z"},"solutions":[{"lang":"en","value":"Upgrade to Web-Simple 0.037 or later."}],"source":{"discovery":"UNKNOWN"},"workarounds":[{"lang":"en","value":"Use double-quoted attributes for values that may contain untrusted data."}],"x_generator":{"engine":"cpansec-cna-tool 0.1"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"CHANGED","version":"3.1","baseScore":5.4,"attackVector":"NETWORK","baseSeverity":"MEDIUM","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","integrityImpact":"LOW","userInteraction":"REQUIRED","attackComplexity":"LOW","availabilityImpact":"NONE","privilegesRequired":"LOW","confidentialityImpact":"LOW"}},{"other":{"type":"ssvc","content":{"timestamp":"2026-11-16T17:16:50.607468Z","id":"CVE-2026-120212","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-11-16T17:17:57.632Z"}}]}}}