{"id":"CVE-2026-5090","aliases":["CVE-2026-5090"],"related":[],"kind":"vulnerability","state":"published","title":"Template::Plugin::HTML versions before 3.103 for Perl allows HTML and JavaScript to be injected","summary":"Template::Plugin::HTML versions before 3.103 for Perl allows HTML and JavaScript to be injected.\n\nThe html_filter function did not escape single quotes. HTML attributes inside of single quotes could be have code injected.  For example, the variable \"var\" in\n\n    <a id='ref' title='[% var | html %]'>\n\nwould not be properly escaped. An attacker could insert some limited HTML and JavaScript, for example,\n\n    var = \" ' onclick='while (true) { alert(1) }'\"\n\nNote that arbitrary HTML and JavaScript would be difficult to inject, because angle brackets, ampersands and double-quotes would still be escaped.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Template::Plugin::HTML versions before 3.103 for Perl allows HTML and JavaScript to be injected.\n\nThe html_filter function did not escape single quotes. HTML attributes inside of single quotes could be have code injected.  For example, the variable \"var\" in\n\n    <a id='ref' title='[% var | html %]'>\n\nwould not be properly escaped. An attacker could insert some limited HTML and JavaScript, for example,\n\n    var = \" ' onclick='while (true) { alert(1) }'\"\n\nNote that arbitrary HTML and JavaScript would be difficult to inject, because angle brackets, ampersands and double-quotes would still be escaped.","source":"cvelist"},{"lang":"es","text":"Las versiones de Template::Plugin::HTML hasta la 3.102 para Perl permiten la inyección de HTML y JavaScript.\n\nLa función html_filter no escapaba las comillas simples. Los atributos HTML dentro de comillas simples podrían ser objeto de inyección de código. Por ejemplo, la variable 'var' en\n\n    <a id='ref' title='[% var | html %]'>\n\nno se escaparía correctamente. Un atacante podría insertar algo de HTML y JavaScript limitado, por ejemplo,\n\n    var = \" ' onclick='while (true) { alert(1) }'\"\n\nTenga en cuenta que sería difícil inyectar HTML y JavaScript arbitrarios, porque los corchetes angulares, los ampersands y las comillas dobles seguirían siendo escapados.","source":"nvd"}],"published":"2026-05-19T21:30:03.552Z","modified":"2026-09-19T12:16:39.640Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"type":"custom","introduced":"0","fixed":"3.103","status":"affected"}],"package":"Template-Toolkit","repo":"https://github.com/abw/Template2","source":"cvelist"}],"references":[{"url":"https://github.com/abw/Template2/issues/327","tags":["issue-tracking"],"sources":["cvelist","nvd"]},{"url":"https://github.com/cpan-authors/Template2/commit/ca539f49f6ffd1c2b7d9ef4f48f6b88292418734.patch","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://metacpan.org/release/TODDR/Template-Toolkit-3.103/changes","tags":["release-notes"],"sources":["cvelist","nvd"]},{"url":"http://www.openwall.com/lists/oss-security/2026/05/19/40","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"CPANSec","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-05-20T13:45:07.748Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-5090","url":"https://www.cve.org/CVERecord?id=CVE-2026-5090","licence":"CVE Terms of Use","modified":"2026-09-19T11:46:35.655Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-5090","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-5090","licence":"Public domain","modified":"2026-09-19T12:16:39.640Z"}],"updatedAt":"2026-11-25T22:59:22.001Z","epss":{"score":0.00292,"percentile":0.23443,"date":"2026-12-01T12:00:22.000Z"}}