CVE-2021-21412
HIGH 8.8CVSS 3.1[thi.ng/egf] Potential arbitrary code execution of `#gpg`-tagged property values
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.
- Published
- 30 Mar 2021
- Last modified
- 8 Jul 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-78
- Also known as
- GHSA-rj44-gpjc-29r7
- Sources
- NVDJSONOSV GHSA-rj44-gpjc-29r7JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 6.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 6.5 | AV:N/AC:L/Au:S/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | @thi.ng/egf_project | @thi.ng/egfcpe:2.3:a:\@thi.ng\/egf_project:\@thi.ng\/egf:*:*:*:*:*:node.js:*:* |
< 0.4.0 | 0.4.0 |
| OSV | npm | @thi.ng/egf | < 0.4.0 | 0.4.0 |
References
- https://github.com/thi-ng/umbrella/blob/develop/packages/egf/CHANGELOG.md#040-2021-03-27 · Release Notes, Third Party Advisory, WEB
- https://github.com/thi-ng/umbrella/commit/88f61656e5f5cfba960013b8133186389efaf243 · Patch, Third Party Advisory, WEB
- https://github.com/thi-ng/umbrella/security/advisories/GHSA-rj44-gpjc-29r7 · Patch, Third Party Advisory, WEB
- https://www.npmjs.com/package/%40thi.ng/egf
- https://nvd.nist.gov/vuln/detail/CVE-2021-21412 · ADVISORY
- https://www.npmjs.com/package/@thi.ng/egf · WEB
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 30 Mar 2021)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 6 Apr 2021)