CVE-2021-41170 Details
Description
neoan3-apps/template is a neoan3 minimal template engine. Versions prior to 1.1.1 have allowed for passing in closures directly into the template engine. As a result values that are callable are executed by the template engine. The issue arises if a value has the same name as a method or function in scope and can therefore be executed either by mistake or maliciously. In theory all users of the package are affected as long as they either deal with direct user input or database values. A multi-step attack on is therefore plausible. Version 1.1.1 has addressed this vulnerability. Unfortunately only working with hardcoded values is safe in prior versions. As this likely defeats the purpose of a template engine, please upgrade.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/sroehrl/neoan3-template/commit/4a2c9570f071d3c8f4ac790007599cba20e16934 | CVE | PatchThird Party Advisory |
| https://github.com/sroehrl/neoan3-template/issues/8 | CVE | Issue TrackingPatchThird Party Advisory |
| https://github.com/sroehrl/neoan3-template/security/advisories/GHSA-3v56-q6r6-4gcw | CVE | PatchThird Party Advisory |
| https://github.com/sroehrl/neoan3-template/commit/4a2c9570f071d3c8f4ac790007599cba20e16934 | [email protected] | PatchThird Party Advisory |
| https://github.com/sroehrl/neoan3-template/issues/8 | [email protected] | Issue TrackingPatchThird Party Advisory |
| https://github.com/sroehrl/neoan3-template/security/advisories/GHSA-3v56-q6r6-4gcw | [email protected] | PatchThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-732 | Incorrect Permission Assignment for Critical Resource | [email protected] |
| CWE-277 | Insecure Inherited Permissions | [email protected] |
| CWE-74 | Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| neoan neoan3-template | < 1.1.1 |
CPE
Remediation
| |
Change History
7 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Nov 21, 2024 | CVE Modified | CVE |
| May 14, 2024 | CVE Modified | [email protected] |
| Nov 17, 2021 | Modified Analysis | [email protected] |
| Nov 15, 2021 | CVE Modified | [email protected] |
| Nov 13, 2021 | Initial Analysis | [email protected] |
| Nov 8, 2021 | CVE Modified | [email protected] |