[thi.ng/egf] Potential arbitrary code execution of `#gpg`-tagged property values
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-78.
Summary
Potential for arbitrary code execution in npm package @thi.ng/egf `#gpg`-tagged property values (only if `decrypt: true` option is enabled). PR with patch has been submitted and will has been released as of v0.4.0 By default the EGF parse functions do NOT attempt to decrypt values (since GPG only available in non-browser env). However, if GPG encrypted values are used/required: 1. Perform a regex search for `#gpg`-tagged values in the EGF source file/string and check for backtick (\`) chars in the encrypted value string 2. Replace/remove them or skip parsing if present.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| thi-ng | egf | before 0.4.0 | 0.4.0 | Patch available | CNA |
| — | @thi.ng/egf (npm) | before 0.4.0 | 0.4.0 | Patch available | GHSA-rj44-gpjc-29r7 |
- egf Vendorthi-ng Affected before 0.4.0 Fixed in 0.4.0 Patch available CNA
- @thi.ng/egf (npm) Vendor— Affected before 0.4.0 Fixed in 0.4.0 Patch available GHSA-rj44-gpjc-29r7
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:\@thi.ng\/egf_project:\@thi.ng\/egf:*:*:*:*:*:node.js:*:* | before 0.4.0 | Vulnerable | @thi.ng/egf Project |
- cpe:2.3:a:\@thi.ng\/egf_project:\@thi.ng\/egf:*:*:*:*:*:node.js:*:* Versions before 0.4.0 Vulnerable ·@thi.ng/egf Project
Remediation
- Fix · CNA egf (thi-ng) Fixed in 0.4.0
- Fix · GHSA-rj44-gpjc-29r7 @thi.ng/egf (npm) Fixed in 0.4.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2021-21412
- 2026-10-03 Alias added: GHSA-rj44-gpjc-29r7
References
Patch 2
Advisory 2
Sources
- CVE-2021-21412 · CVE Program
- CVE-2021-21412 · NVD
- FIRST EPSS
- GHSA-rj44-gpjc-29r7 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences