{"id":"CVE-2026-42047","aliases":["CVE-2026-42047","GHSA-2jf5-6wwv-vhxx"],"related":[],"kind":"vulnerability","state":"published","title":"Inngest TypeScript SDK exposes environment variables via serve() handler on unhandled HTTP methods","summary":"Inngest is a platform for running event-driven and scheduled background functions with queueing, retries, and step orchestration. Versions 3.22.0 through 3.53.1 contain a vulnerability that 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. An application is vulnerable if its serve() endpoint is reachable via PATCH, OPTIONS, or DELETE requests, which is common in setups like Next.js Pages Router or Express's app.use(...). Not affected are Next.js App Router handlers that export only GET, POST, and PUT, and applications using the connect worker method. This issue has been fixed in version 3.54.0. To work around this issue 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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Inngest is a platform for running event-driven and scheduled background functions with queueing, retries, and step orchestration. Versions 3.22.0 through 3.53.1 contain a vulnerability that 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. An application is vulnerable if its serve() endpoint is reachable via PATCH, OPTIONS, or DELETE requests, which is common in setups like Next.js Pages Router or Express's app.use(...). Not affected are Next.js App Router handlers that export only GET, POST, and PUT, and applications using the connect worker method. This issue has been fixed in version 3.54.0. To work around this issue 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.","source":"cvelist"},{"lang":"en","text":"# Summary\n\nA 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.\n\nThe `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.\n\n# Who is affected\n\nAn application is vulnerable if **all** of the following are true:\n\n- It uses `inngest` SDK version `>= 3.22.0, <= 3.53.1` (inclusive)\n- Its `serve()` endpoint is reachable via `PATCH`, `OPTIONS`, or `DELETE` requests.\n\nPlease check your framework's implementation for the serve handler ([documentation](https://www.inngest.com/docs/learn/serving-inngest-functions)) to asses whether it handles these HTTP methods. Common vulnerable configurations include:\n\n- Next.js Pages Router, which forwards all HTTP methods to the handler.\n- Express via `app.use('/api/inngest', serve(...))`, which routes `PATCH` and `OPTIONS` to the handler by default.\n\nThe following are **not** affected:\n\n- Next.js App Router handlers that explicitly export only `GET`, `POST`, and `PUT`.\n- Applications using the `connect` worker method.\n- SDK versions `< 3.22.0` and `>= 3.54.0`, including all `4.x` releases.\n\nThe vulnerability was responsibly disclosed by an Inngest user. At this time, there are no known reports of exploitation.\n\n# Remediation\n\n1. Upgrade to `inngest@3.54.0` or later. The fix is backwards compatible with the `3.x` release line. The `4.x` line is also unaffected.\n2. Rotate any secrets that were presence in environment variables (`process.env`) within affected environments including Inngest signing keys and event keys\n3. Search logs for any requests to your `serve` endpoints using the `PATCH`, `OPTIONS`, `DELETE` http methods to assess if any environment variables may have been exposed.\n\n## Additional recommendations\n\nUsers 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](https://vercel.com/docs/deployment-protection#standard-protection)\" and [the ability to delete older deployments](https://vercel.com/kb/guide/how-do-i-delete-an-individual-deployment) which can help immediately mitigate impact.\n\nFor 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\n\n### Workarounds\n\nIf 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.\n\n### Resources\n\n- Rotating Inngest keys: https://www.inngest.com/docs/platform/manage/rotating-keys\n- Inngest signing keys: https://www.inngest.com/docs/platform/signing-keys\n- Inngest event keys: https://www.inngest.com/docs/events/creating-an-event-key\n- Inngest security best practices: https://www.inngest.com/docs/learn/security\n\n### Credits\n\n- Ben Hylak - an independent security researcher, discovered and responsibly disclosed the vulnerability.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Inngest es una plataforma para ejecutar funciones en segundo plano impulsadas por eventos y programadas con encolamiento, reintentos y orquestación de pasos. Las versiones 3.22.0 a 3.53.1 contienen una vulnerabilidad que permite a atacantes remotos no autenticados exfiltrar variables de entorno del proceso anfitrión a través del gestor HTTP ’serve()’. El gestor ’serve()’ implementa los métodos GET, POST y PUT. Las solicitudes que utilizan PATCH, OPTIONS o DELETE pasan a un gestor genérico que devuelve información de diagnóstico. Un cambio introducido en la v3.22.0 hizo que esta respuesta de diagnóstico incluyera el contenido de ’process.env’, exponiendo cualquier secreto, claves API o credenciales presentes en el entorno. Una aplicación es vulnerable si su punto final ’serve()’ es accesible a través de solicitudes PATCH, OPTIONS o DELETE, lo cual es común en configuraciones como Next.js Pages Router o ’app.use(...)’ de Express. No se ven afectados los gestores de Next.js App Router que exportan solo GET, POST y PUT, y las aplicaciones que utilizan el método de trabajador connect. Este problema ha sido solucionado en la versión 3.54.0. Para solucionar este problema si la actualización no es posible de inmediato, restrinja el punto final ’serve()’ en la capa del framework o del proxy inverso para que acepte solo GET, POST y PUT. El punto final ’serve()’ de Inngest no requiere ningún otro método HTTP.","source":"nvd"}],"published":"2026-05-05T18:13:52.000Z","modified":"2026-10-26T20:10:00.160Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N","score":8.6,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N","score":8.6,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N","score":8.6,"rating":"HIGH"}],"cwes":["CWE-200","CWE-497"],"affected":[{"ranges":[{"version":">= 3.22.0, < 3.54.0","status":"affected"}],"vendor":"inngest","product":"inngest-js","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"3.22.0","status":"affected","fixed":"3.54.0"}],"ecosystem":"npm","package":"inngest","purl":"pkg:npm/inngest","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"3.22.0","fixed":"3.54.0"}],"vendor":"inngest","product":"inngest","cpe":"cpe:2.3:a:inngest:inngest:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/inngest/inngest-js/security/advisories/GHSA-2jf5-6wwv-vhxx","tags":["mitigation","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/inngest/inngest-js/releases/tag/inngest%403.54.1","tags":["patch","product","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42047","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/inngest/inngest-js","tags":["package"],"sources":["ghsa"]},{"url":"https://vercel.com/docs/deployment-protection#standard-protection","tags":["web"],"sources":["ghsa"]},{"url":"https://vercel.com/kb/guide/how-do-i-delete-an-individual-deployment","tags":["web"],"sources":["ghsa"]},{"url":"https://www.inngest.com/docs/events/creating-an-event-key","tags":["web"],"sources":["ghsa"]},{"url":"https://www.inngest.com/docs/learn/security","tags":["web"],"sources":["ghsa"]},{"url":"https://www.inngest.com/docs/learn/serving-inngest-functions","tags":["web"],"sources":["ghsa"]},{"url":"https://www.inngest.com/docs/platform/manage/rotating-keys","tags":["web"],"sources":["ghsa"]},{"url":"https://www.inngest.com/docs/platform/signing-keys","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-05-08T13:52:40.509Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-42047","url":"https://www.cve.org/CVERecord?id=CVE-2026-42047","licence":"CVE Terms of Use","modified":"2026-05-08T13:52:50.549Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-2jf5-6wwv-vhxx","url":"https://github.com/advisories/GHSA-2jf5-6wwv-vhxx","licence":"CC-BY-4.0","modified":"2026-05-11T13:53:13.460Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-42047","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42047","licence":"Public domain","modified":"2026-10-26T20:10:00.160Z"}],"updatedAt":"2026-11-25T22:59:20.925Z","epss":{"score":0.00383,"percentile":0.34424,"date":"2026-12-01T12:00:22.000Z"}}