{"id":"GHSA-rj44-gpjc-29r7","revision":"dcd9fed32b6b4a1e8e0e3b2b3ff48b86","records":[{"revision":"dcd9fed32b6b4a1e8e0e3b2b3ff48b86","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-rj44-gpjc-29r7","aliases":["CVE-2021-21412"],"title":"[thi.ng/egf] Potential arbitrary code execution of `#gpg`-tagged property values","description":"### Impact\n\nPotential for arbitrary code execution in `#gpg`-tagged property values (only if `decrypt: true` option is enabled)\n\n### Patches\n\n[A fix](https://github.com/thi-ng/umbrella/commit/3e14765d6bfd8006742c9e7860bc7d58ae94dfa5) has already been released as v0.4.0\n\n### Workarounds\n\nBy default, EGF parse functions do NOT attempt to decrypt values (since GPG is only available in non-browser env).\n\nHowever, if GPG encrypted values are used/required:\n\n1. Perform a regex search for `#gpg`-tagged values in the EGF source file/string and check for backtick (\\`) chars in the encrypted value string\n2. Replace/remove them or skip parsing if present...\n\n### References\n\nhttps://github.com/thi-ng/umbrella/security/advisories/GHSA-rj44-gpjc-29r7#advisory-comment-65261\n\n### For more information\n\nIf you have any questions or comments about this advisory, please open an issue in the [thi.ng/umbrella repo](https://github.com/thi-ng/umbrella/issues), of which this package is part of.","state":0,"publishedAt":"2021-04-06T17:22:41+00:00","modifiedAt":"2026-07-08T06:29:39.3265192+00:00","affected":[{"ecosystem":"npm","name":"@thi.ng/egf","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"0.4.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/thi-ng/umbrella/security/advisories/GHSA-rj44-gpjc-29r7","https://nvd.nist.gov/vuln/detail/CVE-2021-21412","https://github.com/thi-ng/umbrella/commit/88f61656e5f5cfba960013b8133186389efaf243","https://github.com/thi-ng/umbrella/blob/develop/packages/egf/CHANGELOG.md#040-2021-03-27","https://www.npmjs.com/package/@thi.ng/egf"],"sourceUrl":"https://github.com/advisories/GHSA-rj44-gpjc-29r7","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-rj44-gpjc-29r7","identifiers":["GHSA-rj44-gpjc-29r7","CVE-2021-21412"]},"retained":false,"historicalAffected":[]}],"coverage":[]}