CVE-2026-42047: CWE-200: Exposure of Sensitive Information to an Unauthorized Actor in inngest inngest-js
A vulnerability in inngest-js versions 3.22.0 through 3.53.1 allows unauthenticated remote attackers to exfiltrate environment variables via the serve() HTTP handler when accessed with PATCH, OPTIONS, or DELETE requests. This exposure occurs because the diagnostic response to these methods includes the full contents of process.env, potentially leaking secrets, API keys, or credentials. Applications exposing the serve() endpoint to these HTTP methods are vulnerable, which is common in some frameworks like Next.js Pages Router or Express using app.use(...
AI Analysis
Technical Summary
Inngest-js versions from 3.22.0 up to but not including 3.54.0 contain a vulnerability (CVE-2026-42047) where the serve() HTTP handler improperly exposes environment variables when handling PATCH, OPTIONS, or DELETE requests. This occurs because the diagnostic handler returns process.env contents, leaking sensitive information such as secrets and API keys. The vulnerability affects applications where the serve() endpoint is reachable via these HTTP methods, which is typical in certain web frameworks. The vulnerability has a CVSS 3.1 score of 8.6 (high severity) and is resolved in version 3.54.0. If upgrading is not immediately possible, restricting allowed HTTP methods to GET, POST, and PUT on the serve() endpoint mitigates the risk.
Potential Impact
This vulnerability allows unauthenticated remote attackers to access sensitive environment variables, including secrets, API keys, and credentials, from the host process. The exposure can lead to compromise of confidential data and potentially further attacks leveraging leaked credentials. The vulnerability does not affect availability or integrity but has a high confidentiality impact. It requires no privileges or user interaction and can be exploited remotely over the network.
Mitigation Recommendations
A fixed version (3.54.0) of inngest-js is available and should be applied to remediate this vulnerability. If upgrading immediately is not feasible, restrict the serve() endpoint at the application framework or reverse-proxy level to accept only GET, POST, and PUT HTTP methods, as the serve() handler does not require other methods. This restriction prevents the diagnostic handler from exposing environment variables via PATCH, OPTIONS, or DELETE requests.
CVE-2026-42047: CWE-200: Exposure of Sensitive Information to an Unauthorized Actor in inngest inngest-js
Description
A vulnerability in inngest-js versions 3.22.0 through 3.53.1 allows unauthenticated remote attackers to exfiltrate environment variables via the serve() HTTP handler when accessed with PATCH, OPTIONS, or DELETE requests. This exposure occurs because the diagnostic response to these methods includes the full contents of process.env, potentially leaking secrets, API keys, or credentials. Applications exposing the serve() endpoint to these HTTP methods are vulnerable, which is common in some frameworks like Next.js Pages Router or Express using app.use(...
CVSS v3.1
Score 8.6high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Inngest-js versions from 3.22.0 up to but not including 3.54.0 contain a vulnerability (CVE-2026-42047) where the serve() HTTP handler improperly exposes environment variables when handling PATCH, OPTIONS, or DELETE requests. This occurs because the diagnostic handler returns process.env contents, leaking sensitive information such as secrets and API keys. The vulnerability affects applications where the serve() endpoint is reachable via these HTTP methods, which is typical in certain web frameworks. The vulnerability has a CVSS 3.1 score of 8.6 (high severity) and is resolved in version 3.54.0. If upgrading is not immediately possible, restricting allowed HTTP methods to GET, POST, and PUT on the serve() endpoint mitigates the risk.
Potential Impact
This vulnerability allows unauthenticated remote attackers to access sensitive environment variables, including secrets, API keys, and credentials, from the host process. The exposure can lead to compromise of confidential data and potentially further attacks leveraging leaked credentials. The vulnerability does not affect availability or integrity but has a high confidentiality impact. It requires no privileges or user interaction and can be exploited remotely over the network.
Mitigation Recommendations
A fixed version (3.54.0) of inngest-js is available and should be applied to remediate this vulnerability. If upgrading immediately is not feasible, restrict the serve() endpoint at the application framework or reverse-proxy level to accept only GET, POST, and PUT HTTP methods, as the serve() handler does not require other methods. This restriction prevents the diagnostic handler from exposing environment variables via PATCH, OPTIONS, or DELETE requests.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-23T16:05:01.709Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69fcfed0cbff5d861035f792
Added to database: 05/07/2026, 21:06:24 UTC
Last enriched: 05/15/2026, 11:00:19 UTC
Last updated: 07/31/2026, 19:22:58 UTC
Views: 142
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.