CVE-2021-41170
CRITICAL 9.8CVSS 3.1Insecure Inherited Permissions in neoan3-apps/template
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.
- Published
- 8 Nov 2021
- Last modified
- 8 Jul 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-277CWE-732CWE-74
- Also known as
- GHSA-3v56-q6r6-4gcw
- Sources
- NVDJSONOSV GHSA-3v56-q6r6-4gcwJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Secondary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | neoan | neoan3-templatecpe:2.3:a:neoan:neoan3-template:*:*:*:*:*:*:*:* |
< 1.1.1 | 1.1.1 |
| OSV | Packagist | neoan3-apps/template | < 1.1.1 | 1.1.1 |
References
- https://github.com/sroehrl/neoan3-template/commit/4a2c9570f071d3c8f4ac790007599cba20e16934 · Patch, Third Party Advisory, WEB
- https://github.com/sroehrl/neoan3-template/issues/8 · Issue Tracking, Patch, Third Party Advisory, WEB
- https://github.com/sroehrl/neoan3-template/security/advisories/GHSA-3v56-q6r6-4gcw · Patch, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-41170 · ADVISORY
- https://github.com/sroehrl/neoan3-template · PACKAGE
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 8 Nov 2021)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 10 Nov 2021)