Insecure Default Configuration in graphql-code-generatorGHSA-9w87-4j72-gcv7
GHSA-9w87-4j72-gcv7 is a security vulnerability in graphql-code-generator. A fix is available for graphql-code-generator — see the affected versions and patch details below.
Real-World Exposure
How broadly this vulnerability is actually deployed: weekly install volume shows current usage, a proxy for how much of the ecosystem is exposed.
graphql-code-generatornpmDescription
Versions of graphql-code-generator prior to 0.18.2 have an Insecure Default Configuration. The packages sets NODE_TLS_REJECT_UNAUTHORIZED to 0, disabling certificate verification for the entire project. This results in Insecure Communication for the process.
Recommendation
Upgrade to version 0.18.2 or later.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 📦npm | graphql-code-generator | all versions | 0.18.2npm install graphql-code-generator@0.18.2 |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for graphql-code-generator, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update graphql-code-generator to 0.18.2 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-9w87-4j72-gcv7 is resolved across your whole dependency graph.
Workarounds
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
Frequently Asked Questions
Is GHSA-9w87-4j72-gcv7 in your dependencies?
Find it across npm, including transitive dependencies.