top of page
perceptive_background_267k.jpg

art-template's sub-template resolution logic (src/compile/adapter/resolve-filename.js), used by both the include() and extend() template directives, resolves th…

Published:

4 August 2026 at 22:00:00

Alert date:

5 August 2026 at 09:07:41

Source:

nvd.nist.gov

Click to open the original link from this advisory

Web Technologies, Supply Chain & Dependencies

CVE-2026-71215 is a path traversal vulnerability in the art-template Node.js templating engine. The flaw exists in src/compile/adapter/resolve-filename.js, which resolves sub-template file paths using path.resolve(root, filename) without validating that the resolved path remains within the designated root directory. Because path.resolve() ignores the root when an absolute path is supplied and does not block '../' sequences, an attacker can supply a crafted filename to escape the root directory. The resolved path is passed directly to fs.readFileSync() in loader.js, causing arbitrary file contents to be read and rendered. This is exploitable when user-controlled input (e.g., a query parameter) is passed into template directives such as {{include page}} or extend(). Any Node.js application using art-template that exposes sub-template names to external input is at risk. Exploitation can lead to unauthorized disclosure of sensitive files accessible by the Node.js process.

Technical details

Mitigation steps:

Affected products:

art-template

Related links:

Related CVE's:

Related threat actors:

IOC's:

This article was created with the assistance of AI technology by Perceptive.

© 2025 by Perceptive Security. All rights reserved.

email: info@perceptivesecurity.com

Disclaimer: Deze website toont informatie afkomstig van externe bronnen. Perceptive aanvaardt geen verantwoordelijkheid voor de inhoud, juistheid of volledigheid van deze informatie.

bottom of page