Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify app passing external input to {{include}}
-
DeliveryCraft absolute path or ../ traversal as filename
-
ExploitSend HTTP request with malicious page parameter
-
Executionpath.resolve() discards root constraint
-
Persistfs.readFileSync() reads arbitrary target file
-
ImpactFile contents compiled and rendered in HTTP response
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires that the target application explicitly passes externally-controlled input - such as an HTTP query parameter, POST body field, URL path segment, or cookie value - into an art-template {{include}} or {{extend}} directive as the filename argument (e.g., template code of the form {{include req.query.page}} or a server-side pattern like template.render(tpl, { page: req.query.page }) where page is interpolated into an include call). Applications where all template filenames are hardcoded in template source files are completely unexploitable regardless of deployment. Exploitation is further constrained by Node.js process privileges: only files readable by the OS user running the Node process can be exfiltrated. No authentication bypass is required once the vulnerable input pathway exists, consistent with PR:N in the CVSS vector. Non-default configuration of dynamically-resolved sub-templates is the sole but decisive limiting factor. |
| Impact | The NVD-assigned CVSS 7.5 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N) represents a worst-case, fully-reachable scenario, but real-world risk is more nuanced. Exploitation is critically conditional: the vulnerability is only reachable in applications where developer code passes externally-supplied input (query parameters, form fields, URL segments) directly into a template include or extend directive - a pattern that is not inherent to art-template itself but represents a specific, identifiable design choice in consuming applications. Applications with hardcoded template names are completely unaffected. Because this prerequisite is outside the attacker's control and represents a non-default configuration, a more conservative independent CVSS assessment would apply AC:H, yielding approximately 5.9. No EPSS data was provided in the intelligence feed, and the absence of KEV listing and POC code further supports treating this as a real but not immediately critical priority absent confirmed vulnerable deployment patterns. The impact is confidentiality only (C:H/I:N/A:N), bounded to files readable by the Node.js process - sensitive targets include .env files, configuration secrets, private keys, and OS files such as /etc/passwd depending on process privileges. |
| Exploit ScenarioDerived | An attacker targeting a Node.js web application that constructs a template include from a query parameter - such as rendering a template containing {{include page}} where page comes from req.query.page - sends a crafted HTTP GET request with page=../../../../etc/passwd or page=/etc/passwd as the parameter value. art-template's resolve-filename.js calls path.resolve(root, '/etc/passwd'), which returns /etc/passwd verbatim, and loader.js reads and compiles the file, embedding its contents in the HTTP response. No public proof-of-concept code has been identified, though the attack requires only a standard HTTP client. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 05, 2026
Arbitrary file read in art-template's sub-template resolution logic exposes any file accessible to the Node.js process when application code passes externally-controlled input into include() or extend() template directives. The flaw exists in src/compile/adapter/resolve-filename.js, where path.resolve(root, filename) is called without any subsequent validation that the resolved path remains within the root directory - absolute paths silently discard root entirely, and relative traversal sequences (../) are not blocked. With a CVSS base score of 7.5 (AV:N/AC:L/PR:N/UI:N), exploitation is network-accessible and requires no authentication against vulnerable applications; however, no confirmed active exploitation (CISA KEV) or public proof-of-concept has been identified at time of analysis.
RemediationAI
No vendor-released patch has been identified at time of analysis; fix availability should be tracked via the upstream repository at https://github.com/aui/art-template. As an immediate compensating control, application developers should impose an allowlist of permitted sub-template names - maintaining a set of valid template identifiers server-side and rejecting any include/extend filename not explicitly in that set before it reaches the art-template engine; this is the most effective mitigation with minimal side effects. Alternatively, strip or reject any filename containing ../ sequences or starting with / before passing to template directives, though denylist approaches carry bypass risk and are less reliable. Running the Node.js process under a dedicated, low-privilege OS user with a restricted file system view (e.g., via chroot or containerized environments with minimal filesystem mounts) limits the blast radius of exploitation by constraining which files fs.readFileSync() can access. Developers should audit all template files for {{include}} or {{extend}} directives that accept dynamic values derived from HTTP input and refactor them to use hardcoded template names wherever possible.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
art-template is a Node.js template engine (CPE: cpe:2.3:a:art-template:art-template:*:*:*:*:*:*:*:*) that supports sub-template inclusion via {{include}} and {{extend}} directives. The root cause is CWE-22 (Improper Limitation of a Pathname to a Restricted Directory - Path Traversal). In Node.js, path.resolve(root, filename) exhibits two dangerous behaviors when filename is attacker-controlled: if filename is an absolute path (e.g., /etc/passwd), path.resolve() ignores root entirely and returns the absolute path verbatim; if filename contains ../ sequences, they are resolved normally against root, allowing escape. The resolved path is passed without sanitization to fs.readFileSync() in loader.js, and the file contents are compiled and rendered by the template engine. The absence of any boundary check - such as verifying that resolved.startsWith(root + '/') - is the singular missing control that makes this exploitable.
Know when Art Template gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
AC:H because exploitation requires a specific non-default application pattern - passing external input into template include directives - which is outside the attacker's control.
Primary rating from Vendor (TuranSec).
CVSS VectorVendor: TuranSec
DescriptionCVE.org
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.
Executive ViewAI
art-template, a Node.js template rendering engine, contains an arbitrary file read vulnerability (CVE-2026-71215, CVSS 7.5) that allows unauthenticated attackers to access any file readable by the application process when external input is passed to include() or extend() directives. This flaw exposes sensitive configuration files, credentials, and source code without requiring authentication or special access. Organizations using art-template for dynamic template rendering face immediate risk of confidential data disclosure.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Enforce input validation to reject path traversal characters and absolute paths in all template directives; (2) Sandbox template rendering process with filesystem restrictions-use container or OS-level policies to restrict file access to the application's designated directories only; (3) Apply principle of least privilege-run the Node.js process under a dedicated user account with minimal filesystem permissions; (4) Deploy WAF rules to detect and block requests with path traversal patterns (../, /etc/, .env, etc.); (5) Regularly audit template rendering code and monitor application logs for anomalous file access attempts.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
EUVD-2026-53212
GHSA-mj55-6q5h-prw4
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB