BREW-LIBBI-CVE-2026-5090 (CVE-2026-5090)
Vulnerability from osv_homebrew – Published: 2026-08-13 09:40 – Updated: 2026-09-20 17:50 – Source websiteTemplate::Plugin::HTML versions before 3.103 for Perl allows HTML and JavaScript to be injected.
The 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
<a id='ref' title='[% var | html %]'>
would not be properly escaped. An attacker could insert some limited HTML and JavaScript, for example,
var = " ' onclick='while (true) { alert(1) }'"
Note that arbitrary HTML and JavaScript would be difficult to inject, because angle brackets, ampersands and double-quotes would still be escaped.
{
"affected": [
{
"ecosystem_specific": {
"fix": null,
"range_state": "affected",
"resource": "Template",
"resource_purl": "pkg:cpan/ABW/Template-Toolkit@2.27",
"upstream_fixed_in": "3.103"
},
"package": {
"ecosystem": "Homebrew",
"name": "libbi",
"purl": "pkg:brew/libbi"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"database_specific": {
"confidence": "medium",
"source": "matched",
"strategy": "cpansa",
"upstream_evidence": [
{
"ecosystem": "CPAN",
"key": "pkg:cpan/ABW/Template-Toolkit@2.27",
"name": "Template-Toolkit",
"resource": "Template",
"strategy": "cpansa",
"subject_version": "2.27"
}
]
},
"details": "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 \u003ca id=\u0027ref\u0027 title=\u0027[% var | html %]\u0027\u003e\n\nwould not be properly escaped. An attacker could insert some limited HTML and JavaScript, for example,\n\n var = \" \u0027 onclick=\u0027while (true) { alert(1) }\u0027\"\n\nNote that arbitrary HTML and JavaScript would be difficult to inject, because angle brackets, ampersands and double-quotes would still be escaped.",
"id": "BREW-libbi-CVE-2026-5090",
"modified": "2026-09-20T17:50:56Z",
"published": "2026-08-13T09:40:12Z",
"references": [
{
"type": "WEB",
"url": "http://www.openwall.com/lists/oss-security/2026/05/19/40"
},
{
"type": "WEB",
"url": "https://cpan.org/modules"
},
{
"type": "ADVISORY",
"url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/5xxx/CVE-2026-5090.json"
},
{
"type": "ADVISORY",
"url": "https://metacpan.org/release/TODDR/Template-Toolkit-3.103/changes"
},
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-5090"
},
{
"type": "REPORT",
"url": "https://github.com/abw/Template2/issues/327"
},
{
"type": "FIX",
"url": "https://github.com/cpan-authors/Template2/commit/ca539f49f6ffd1c2b7d9ef4f48f6b88292418734.patch"
},
{
"type": "PACKAGE",
"url": "https://github.com/abw/Template2"
}
],
"schema_version": "1.7.3",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
"type": "CVSS_V3"
}
],
"summary": "Template::Plugin::HTML versions before 3.103 for Perl allows HTML and JavaScript to be injected",
"upstream": [
"CVE-2026-5090"
]
}
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.