Skip to main content

art-template CVE-2026-71215

| EUVDEUVD-2026-53212 HIGH
Path Traversal (CWE-22)
2026-08-05 TuranSec GHSA-mj55-6q5h-prw4
7.5
CVSS 3.1 · Vendor: TuranSec
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify app passing external input to {{include}}
  2. Delivery
    Craft absolute path or ../ traversal as filename
  3. Exploit
    Send HTTP request with malicious page parameter
  4. Execution
    path.resolve() discards root constraint
  5. Persist
    fs.readFileSync() reads arbitrary target file
  6. Impact
    File 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

art-template 0 ≤4.13.4

Affected Packages

euvd art_template no fix

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

Vendor (TuranSec) PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
vuln.today AI 5.9 MEDIUM

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.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (TuranSec).

CVSS VectorVendor: TuranSec

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.4%
Top 70% exploitable
Prevalence
Medium
popular Node.js template engine, widely used in East Asian web projects
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.4%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy