Search
Find a vulnerability
Search criteria
1 vulnerability found for art-template by art-template
CVE-2026-71215 (GCVE-0-2026-71215)
Vulnerability from cvelistv5 – Published: 2026-08-05 06:59 – Updated: 2026-08-05 06:59
VLAI
EPSS
VEX
Title
art-template: Path Traversal in Sub-Template Resolution via include()/extend()
Summary
art-template's sub-template resolution logic (src/compile/adapter/resolve-filename.js), used by both the include() and extend() template directives, resolves the target file path via path.resolve(root, filename) with no check afterward that the result remains inside root. Because path.resolve() discards root entirely when filename is an absolute path, and does not block '../' traversal sequences, and the resolved path is passed directly to fs.readFileSync() in loader.js with its contents compiled and rendered, an application that lets a sub-template name be influenced by external input (e.g. a query parameter passed into {{include page}}) allows an attacker to read arbitrary files on disk that the Node process can access.
Severity
7.5 (High)
CWE
- CWE-22 - Path Traversal
Assigner
References
1 reference
| URL | Tags |
|---|---|
| https://github.com/aui/art-template |
Impacted products
1 product
| Vendor | Product | Version | |
|---|---|---|---|
| art-template | art-template |
Affected:
0 , ≤ 4.13.4
(custom)
|
Credits
{
"containers": {
"cna": {
"affected": [
{
"defaultStatus": "unknown",
"product": "art-template",
"programFiles": [
"src/compile/adapter/resolve-filename.js",
"src/compile/adapter/loader.js"
],
"vendor": "art-template",
"versions": [
{
"lessThanOrEqual": "4.13.4",
"status": "affected",
"version": "0",
"versionType": "custom"
}
]
}
],
"credits": [
{
"lang": "en",
"type": "finder",
"value": "muhammadsiddiq"
}
],
"descriptions": [
{
"lang": "en",
"value": "art-template\u0027s sub-template resolution logic (src/compile/adapter/resolve-filename.js), used by both the include() and extend() template directives, resolves the target file path via path.resolve(root, filename) with no check afterward that the result remains inside root. Because path.resolve() discards root entirely when filename is an absolute path, and does not block \u0027../\u0027 traversal sequences, and the resolved path is passed directly to fs.readFileSync() in loader.js with its contents compiled and rendered, an application that lets a sub-template name be influenced by external input (e.g. a query parameter passed into {{include page}}) allows an attacker to read arbitrary files on disk that the Node process can access."
}
],
"metrics": [
{
"other": {
"content": {
"value": "HIGH"
},
"type": "CVSS_3.1_severity"
}
},
{
"cvssV3_1": {
"baseScore": 7.5,
"baseSeverity": "HIGH",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N",
"version": "3.1"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-22",
"description": "CWE-22 Path Traversal",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-08-05T06:59:35.983Z",
"orgId": "309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c",
"shortName": "TuranSec"
},
"references": [
{
"url": "https://github.com/aui/art-template"
}
],
"title": "art-template: Path Traversal in Sub-Template Resolution via include()/extend()"
}
},
"cveMetadata": {
"assignerOrgId": "309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c",
"assignerShortName": "TuranSec",
"cveId": "CVE-2026-71215",
"datePublished": "2026-08-05T06:59:35.983Z",
"dateReserved": "2026-08-05T06:56:15.799Z",
"dateUpdated": "2026-08-05T06:59:35.983Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}