CVE Explorer
CVE-2026-27120
Leafkit is a templating language with Swift-inspired syntax. Prior to 1.4.1, htmlEscaped in leaf-kit will only escape html special characters if the extended grapheme clusters match, which allows bypassing escaping by using an extended grapheme cluster containing both the special html character and some additional characters. In the case of html attributes, this can lead to XSS if there is a leaf variable in the attribute that is user controlled. This vulnerability is fixed in 1.4.1.
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
1
Preserved source conflicts
No provider value was silently selected as the winner.
cwe · 3 assertions
{"cweId":"CWE-79","description":"CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:cef8064cd308348d4a66b96e52183cef3065e1d4e08cb1b0e50ea78a4738081f · sha256:fc052833f68bc904… · /containers/cna/problemTypes/1/descriptions/0
{"cweId":"CWE-87","description":"CWE-87: Improper Neutralization of Alternate XSS Syntax","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:cef8064cd308348d4a66b96e52183cef3065e1d4e08cb1b0e50ea78a4738081f · sha256:fc052833f68bc904… · /containers/cna/problemTypes/2/descriptions/0
{"cweId":"CWE-75","description":"CWE-75: Failure to Sanitize Special Elements into a Different Plane (Special Element Injection)","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:cef8064cd308348d4a66b96e52183cef3065e1d4e08cb1b0e50ea78a4738081f · sha256:fc052833f68bc904… · /containers/cna/problemTypes/0/descriptions/0
Affected products and versions
1 source assertion{"product":"leaf-kit","vendor":"vapor","versions":[{"status":"affected","version":"< 1.4.1"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:cef8064cd308348d4a66b96e52183cef3065e1d4e08cb1b0e50ea78a4738081f · sha256:fc052833f68bc904… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":6.1,"baseSeverity":"MEDIUM","confidentialityImpact":"LOW","integrityImpact":"LOW","privilegesRequired":"NONE","scope":"CHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","version":"3.1"},"metric_type":"cvssV3_1"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:cef8064cd308348d4a66b96e52183cef3065e1d4e08cb1b0e50ea78a4738081f · sha256:fc052833f68bc904… · /containers/cna/metrics/0/cvssV3_1
CWE assertions
3 source assertions{"cweId":"CWE-79","description":"CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:cef8064cd308348d4a66b96e52183cef3065e1d4e08cb1b0e50ea78a4738081f · sha256:fc052833f68bc904… · /containers/cna/problemTypes/1/descriptions/0
{"cweId":"CWE-87","description":"CWE-87: Improper Neutralization of Alternate XSS Syntax","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:cef8064cd308348d4a66b96e52183cef3065e1d4e08cb1b0e50ea78a4738081f · sha256:fc052833f68bc904… · /containers/cna/problemTypes/2/descriptions/0
{"cweId":"CWE-75","description":"CWE-75: Failure to Sanitize Special Elements into a Different Plane (Special Element Injection)","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:cef8064cd308348d4a66b96e52183cef3065e1d4e08cb1b0e50ea78a4738081f · sha256:fc052833f68bc904… · /containers/cna/problemTypes/0/descriptions/0
Source references
2 source assertions{"name":"https://github.com/vapor/leaf-kit/commit/8919e39476c3a4ba05c28b71546bb9195f87ef34","tags":["x_refsource_MISC"],"url":"https://github.com/vapor/leaf-kit/commit/8919e39476c3a4ba05c28b71546bb9195f87ef34"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:cef8064cd308348d4a66b96e52183cef3065e1d4e08cb1b0e50ea78a4738081f · sha256:fc052833f68bc904… · /containers/cna/references/1
{"name":"https://github.com/vapor/leaf-kit/security/advisories/GHSA-4hfh-fch3-5q7p","tags":["x_refsource_CONFIRM"],"url":"https://github.com/vapor/leaf-kit/security/advisories/GHSA-4hfh-fch3-5q7p"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:cef8064cd308348d4a66b96e52183cef3065e1d4e08cb1b0e50ea78a4738081f · sha256:fc052833f68bc904… · /containers/cna/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.