Inngest TypeScript SDK exposes environment variables via serve() handler on unhandled HTTP methods
Summary
A vulnerability in the Inngest TypeScript SDK versions 3.22.0 through 3.53.1 allows unauthenticated remote attackers to exfiltrate environment variables from the host process via the serve() HTTP handler.
The serve() handler implements GET, POST, and PUT methods. Requests using PATCH, OPTIONS, or DELETE fall through to a generic handler that returns diagnostic information. A change introduced in v3.22.0 caused this diagnostic response to include the contents of process.env, exposing any secrets, API keys, or credentials present in the environment.
Who is affected
An application is vulnerable if all of the following are true:
- It uses
inngestSDK version>= 3.22.0, <= 3.53.1(inclusive) - Its
serve()endpoint is reachable viaPATCH,OPTIONS, orDELETErequests.
Please check your framework's implementation for the serve handler (documentation) to asses whether it handles these HTTP methods. Common vulnerable configurations include:
- Next.js Pages Router, which forwards all HTTP methods to the handler.
- Express via
app.use('/api/inngest', serve(...)), which routesPATCHandOPTIONSto the handler by default.
The following are not affected:
- Next.js App Router handlers that explicitly export only
GET,POST, andPUT. - Applications using the
connectworker method. - SDK versions
< 3.22.0and>= 3.54.0, including all4.xreleases.
The vulnerability was responsibly disclosed by an Inngest user. At this time, there are no known reports of exploitation.
Remediation
- Upgrade to
inngest@3.54.0or later. The fix is backwards compatible with the3.xrelease line. The4.xline is also unaffected. - Rotate any secrets that were presence in environment variables (
process.env) within affected environments including Inngest signing keys and event keys - Search logs for any requests to your
serveendpoints using thePATCH,OPTIONS,DELETEhttp methods to assess if any environment variables may have been exposed.
Additional recommendations
Users on platforms with long-lived deployments (e.g. Vercel, Cloudflare Workers) should be aware that prior deployments remain reachable at their immutable URLs and may continue to expose the vulnerability even after a new deployment is promoted. For example, Vercel offers security features such as "Deployment Protection" and the ability to delete older deployments which can help immediately mitigate impact.
For additional security, users can also adjust firewall or proxy rules to only allow requests to their serve endpoint from Inngest IP addresses available here: http://inngest.com/ips-v4, http://inngest.com/ips-v6
Workarounds
If upgrading is not immediately possible, restrict the serve() endpoint at the framework or reverse-proxy layer to accept only GET, POST, and PUT. The Inngest serve() endpoint does not require any other HTTP methods.
Resources
- Rotating Inngest keys: https://www.inngest.com/docs/platform/manage/rotating-keys
- Inngest signing keys: https://www.inngest.com/docs/platform/signing-keys
- Inngest event keys: https://www.inngest.com/docs/events/creating-an-event-key
- Inngest security best practices: https://www.inngest.com/docs/learn/security
Credits
- Ben Hylak - an independent security researcher, discovered and responsibly disclosed the vulnerability.
Betroffene Software
Klicken Sie auf eine Technologie, um alle zugehörigen Schwachstellen anzuzeigen.
| Plattform | Paket | Anfällige Versionen | Behoben in |
|---|---|---|---|
| npm-Paket | inngest | >= 3.22.0, < 3.54.0 | 3.54.0 |
Verweise
- https://github.com/inngest/inngest-js/security/advisories/GHSA-2jf5-6wwv-vhxx
- https://nvd.nist.gov/vuln/detail/CVE-2026-42047
- https://github.com/inngest/inngest-js
- https://github.com/inngest/inngest-js/releases/tag/inngest%403.54.1
- https://vercel.com/docs/deployment-protection#standard-protection
- https://vercel.com/kb/guide/how-do-i-delete-an-individual-deployment
- https://www.inngest.com/docs/events/creating-an-event-key
- https://www.inngest.com/docs/learn/security
- https://www.inngest.com/docs/learn/serving-inngest-functions
- https://www.inngest.com/docs/platform/manage/rotating-keys
- https://www.inngest.com/docs/platform/signing-keys
- CVSS-Vektor
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N- Schwäche (CWE)
CWE-200, CWE-497- Plattform
- npm
- Paket
inngest- Veröffentlicht
- 05.05.2026
- Aktualisiert
- 11.10.2026 10:22
Quellen und Lizenzen
OSV / GitHub Advisory Database - GHSA-2jf5-6wwv-vhxx - CC BY 4.0
Schwachstellenhistorie: inngest
Alle veröffentlichten Schwachstellen dieses Pakets (npm-Paket), neueste zuerst. Zeigt, ob es ein einmaliger Ausrutscher ist oder ein Paket, das man im Auge behalten muss.
Dies ist die einzige bekannte Schwachstelle dieses Pakets.
Erkennen Sie Schwachstellen in Ihrer Anwendung
Mit der DockRay-Integration und aktivierter Softwareinventarisierung prüft DockRay gemeldete Komponentenversionen auf bekannte Schwachstellen und benachrichtigt Sie über bestätigte Treffer. Die Abdeckung hängt von der unterstützten Technologie und den verfügbaren Meldungen ab.