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.
An application is vulnerable if all of the following are true:
inngest SDK version >= 3.22.0, <= 3.53.1 (inclusive)serve() endpoint is reachable via PATCH, OPTIONS, or DELETE requests.Please check your framework's implementation for the serve handler (documentation) to asses whether it handles these HTTP methods. Common vulnerable configurations include:
app.use('/api/inngest', serve(...)), which routes PATCH and OPTIONS to the handler by default.The following are not affected:
GET, POST, and PUT.connect worker method.< 3.22.0 and >= 3.54.0, including all 4.x releases.The vulnerability was responsibly disclosed by an Inngest user. At this time, there are no known reports of exploitation.
inngest@3.54.0 or later. The fix is backwards compatible with the 3.x release line. The 4.x line is also unaffected.process.env) within affected environments including Inngest signing keys and event keysserve endpoints using...3.54.0Exploitability
AV:NAC:LPR:NUI:NScope
S:CImpact
C:HI:NA:N8.6/CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N