Skip to content
Heist/ feed
Back to feed
High

Inngest TypeScript SDK exposes environment variables via serve() handler on unhandled HTTP methods

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-42047
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 08:32 UTC · Revision 1

Source evidence

Inngest TypeScript SDK exposes environment variables via serve() handler on unhandled HTTP methods

core-osv · Original source

Published 7 May 2026, 20:38 UTC

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.

osv:CVE-2026-42047
Complete source record
{
  "id": "f89d6f0f3945b43a530056e86b867b4f2396701d6c93a14319af6dd2d2ee0808",
  "url": "https://osv.dev/vulnerability/CVE-2026-42047",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "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.",
    "evidence": "osv:CVE-2026-42047",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2026-42047",
      "aliases": [
        "CVE-2026-42047",
        "GHSA-2jf5-6wwv-vhxx"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/inngest/inngest-js",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "82a0341cbec2b5252ca7c756bb35b3e4c950da43"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "fixed": "82a0341cbec2b5252ca7c756bb35b3e4c950da43"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "inngest@3.54.1"
                  }
                ]
              }
            }
          ],
          "versions": [
            "inngest@3.52.7",
            "inngest@3.52.6",
            "inngest@3.52.5",
            "inngest@3.52.4",
            "inngest@3.52.3",
            "inngest@3.52.2",
            "inngest@3.52.1",
            "inngest@3.52.0",
            "@inngest/realtime@0.4.6",
            "inngest@3.51.0",
            "inngest@3.50.0",
            "inngest@3.49.3",
            "inngest@3.49.2",
            "inngest@3.49.0",
            "inngest@3.49.1",
            "inngest@3.48.1",
            "inngest@3.48.0",
            "inngest@3.45.1",
            "@inngest/realtime@0.4.5",
            "inngest@3.45.0",
            "inngest@3.44.5",
            "@inngest/test@0.1.9",
            "inngest@3.44.4",
            "@inngest/ai@0.1.7",
            "inngest@3.44.3",
            "inngest@3.44.2",
            "@inngest/middleware-validation@0.0.5",
            "inngest@3.44.1",
            "@inngest/middleware-validation@0.0.4",
            "@inngest/realtime@0.4.4",
            "inngest@3.44.0",
            "@inngest/realtime@0.4.3",
            "inngest@3.43.1",
            "inngest@3.43.0",
            "@inngest/realtime@0.4.2",
            "@inngest/test@0.1.8",
            "@inngest/realtime@0.4.1",
            "@inngest/middleware-validation@0.0.3",
            "@inngest/middleware-sentry@0.1.3",
            "@inngest/middleware-encryption@1.0.2",
            "inngest@3.42.3",
            "inngest@3.42.2",
            "inngest@3.42.1",
            "inngest@3.42.0",
            "inngest@3.41.0",
            "@inngest/realtime@0.4.0",
            "inngest@3.40.3",
            "@inngest/realtime@0.3.3",
            "inngest@3.40.2",
            "@inngest/realtime@0.3.2",
            "@inngest/ai@0.1.6",
            "inngest@3.40.1",
            "inngest@3.40.0",
            "@inngest/test@0.1.7",
            "@inngest/ai@0.1.5",
            "inngest@3.39.2",
            "inngest@3.39.1",
            "inngest@3.39.0",
            "inngest@3.38.1",
            "inngest@3.38.0",
            "inngest@3.37.0",
            "inngest@3.36.0",
            "@inngest/middleware-encryption@1.0.1",
            "@inngest/realtime@0.3.1",
            "@inngest/ai@0.1.4",
            "inngest@3.35.1",
            "inngest@3.35.0",
            "@inngest/middleware-validation@0.0.2",
            "@inngest/realtime@0.3.0",
            "inngest@3.34.5",
            "inngest@3.34.4",
            "inngest@3.34.3",
            "@inngest/realtime@0.2.0",
            "inngest@3.34.2",
            "@inngest/realtime@0.1.2",
            "inngest@3.34.1",
            "inngest@3.34.0",
            "inngest@3.33.0",
            "inngest@3.32.9",
            "@inngest/realtime@0.1.1",
            "inngest@3.32.8",
            "@inngest/realtime@0.1.0",
            "@inngest/realtime@0.0.3",
            "@inngest/test@0.1.6",
            "@inngest/realtime@0.0.2",
            "@inngest/realtime@0.0.1",
            "@inngest/realtime@0.0.0",
            "inngest@3.32.7",
            "inngest@3.32.6",
            "@inngest/ai@0.1.3",
            "inngest@3.32.5",
            "@inngest/ai@0.1.2",
            "inngest@3.32.4",
            "@inngest/ai@0.1.1",
            "inngest@3.32.3",
            "inngest@3.32.2",
            "@inngest/ai@0.1.0",
            "inngest@3.32.1",
            "inngest@3.32.0",
            "@inngest/ai@0.0.5",
            "inngest@3.31.13",
            "inngest@3.31.12",
            "inngest@3.31.11",
            "inngest@3.31.10",
            "@inngest/ai@0.0.4",
            "inngest@3.31.9",
            "inngest@3.31.8",
            "inngest@3.31.7",
            "inngest@3.31.6",
            "inngest@3.31.5",
            "inngest@3.31.4",
            "inngest@3.31.3",
            "inngest@3.31.2",
            "inngest@3.31.1",
            "@inngest/ai@0.0.3",
            "inngest@3.31.0",
            "@inngest/middleware-sentry@0.1.2",
            "inngest@3.30.0",
            "@inngest/ai@0.0.2",
            "inngest@3.29.3",
            "inngest@3.29.2",
            "inngest@3.29.1",
            "inngest@3.29.0",
            "@inngest/test@0.1.5",
            "inngest@3.28.0",
            "@inngest/test@0.1.4",
            "@inngest/test@0.1.3",
            "inngest@3.27.5",
            "inngest@3.27.4",
            "inngest@3.27.3",
            "inngest@3.27.2",
            "inngest@3.27.1",
            "inngest@3.27.0",
            "@inngest/middleware-validation@0.0.1",
            "inngest@3.26.3",
            "inngest@3.26.2",
            "inngest@3.26.1",
            "inngest@3.26.0",
            "@inngest/test@0.1.2",
            "inngest@3.25.1",
            "@inngest/test@0.1.1",
            "inngest@3.23.1",
            "@inngest/test@0.1.0",
            "inngest@3.23.0",
            "inngest@3.22.13",
            "inngest@3.22.12",
            "inngest@3.22.11",
            "inngest@3.22.10",
            "inngest@3.22.9",
            "@inngest/test@0.0.0",
            "inngest@3.22.8",
            "inngest@3.22.7",
            "inngest@3.22.6",
            "inngest@3.22.5",
            "@inngest/middleware-sentry@0.1.1",
            "inngest@3.22.4",
            "inngest@3.22.3",
            "inngest@3.22.2",
            "@inngest/eslint-plugin@0.0.7",
            "inngest@3.22.1",
            "inngest@3.22.0",
            "@inngest/middleware-encryption@1.0.0",
            "inngest@3.21.2",
            "inngest@3.21.1",
            "inngest@3.21.0",
            "inngest@3.20.0",
            "inngest@3.19.22",
            "inngest@3.19.21",
            "@inngest/middleware-sentry@0.1.0",
            "inngest@3.19.20",
            "inngest@3.19.19",
            "inngest@3.19.18",
            "inngest@3.19.17",
            "@inngest/middleware-encryption@0.1.7",
            "@inngest/eslint-plugin@0.0.6",
            "inngest@3.19.16",
            "inngest@3.19.15",
            "inngest@3.19.14",
            "inngest@3.19.13",
            "inngest@3.19.12",
            "@inngest/middleware-encryption@0.1.6",
            "inngest@3.19.11",
            "inngest@3.19.10",
            "inngest@3.19.9",
            "inngest@3.19.8",
            "@inngest/middleware-encryption@0.1.5",
            "inngest@3.19.7",
            "inngest@3.19.4",
            "inngest@3.19.3",
            "inngest@3.19.2",
            "inngest@3.19.1",
            "inngest@3.19.0",
            "inngest@3.18.1",
            "inngest@3.18.0",
            "inngest@3.17.0",
            "inngest@3.16.2",
            "@inngest/eslint-plugin@0.0.5",
            "inngest@3.16.1",
            "inngest@3.16.0",
            "inngest@3.15.5",
            "inngest@3.15.4",
            "inngest@3.15.3",
            "inngest@3.15.2",
            "inngest@3.15.1",
            "inngest@3.15.0",
            "inngest@3.14.2",
            "inngest@3.14.1",
            "inngest@3.14.0",
            "inngest@3.13.0",
            "inngest@3.12.0",
            "inngest@3.11.0",
            "inngest@3.10.0",
            "inngest@3.9.0",
            "inngest@3.8.0",
            "@inngest/middleware-encryption@0.1.3",
            "@inngest/eslint-plugin@0.0.4",
            "inngest@3.7.4",
            "inngest@3.7.3",
            "inngest@3.7.2",
            "@inngest/middleware-encryption@0.1.2",
            "inngest@3.7.1",
            "@inngest/middleware-encryption@0.1.1",
            "inngest@3.6.1",
            "@inngest/eslint-plugin@0.0.1",
            "@inngest/middleware-encryption@0.1.0",
            "inngest@3.7.0",
            "inngest@3.6.2",
            "@inngest/eslint-plugin@0.0.2",
            "inngest@3.6.0",
            "inngest@3.5.0",
            "inngest@3.4.4",
            "inngest@3.4.3",
            "inngest@3.4.2",
            "inngest@3.4.1",
            "inngest@3.4.0",
            "inngest@3.3.0",
            "inngest@3.2.1",
            "inngest@3.1.1",
            "inngest@3.1.0",
            "inngest@3.0.2",
            "inngest@3.0.1",
            "inngest@3.0.0",
            "inngest@2.7.2",
            "inngest@2.7.1",
            "inngest@2.7.0",
            "inngest@2.6.1",
            "inngest@2.6.0",
            "inngest@2.5.2",
            "inngest@2.5.1",
            "inngest@2.5.0",
            "inngest@2.4.1",
            "@inngest/example-functions@1.0.0",
            "@inngest/eslint-plugin-internal@1.0.0",
            "v2.4.1",
            "v2.4.0",
            "v2.3.0",
            "v2.2.1",
            "v2.2.0",
            "v2.1.0",
            "v2.0.2",
            "v2.0.1",
            "v1.9.4",
            "v2.0.0",
            "v1.9.3",
            "v1.9.2",
            "v1.9.1",
            "v1.9.0",
            "v1.8.5",
            "v1.8.4",
            "v1.8.3",
            "v1.8.2",
            "v1.8.1",
            "v1.8.0",
            "v1.7.1",
            "v1.7.0",
            "v1.6.1",
            "v1.6.0",
            "v1.5.4",
            "v1.5.3",
            "v1.5.2",
            "v1.5.1",
            "v1.5.0",
            "v1.4.1",
            "v1.4.0",
            "v1.3.5",
            "v1.3.1",
            "v1.3.0",
            "v1.2.0",
            "v1.1.0",
            "v1.0.0",
            "v0.9.2",
            "v0.9.1",
            "v0.8.9",
            "v0.8.8",
            "v0.8.7",
            "v0.8.6",
            "v0.8.5",
            "v0.8.4",
            "v0.8.3",
            "v0.8.1",
            "v0.7.0",
            "v0.6.1",
            "v0.6.0",
            "v0.5.3",
            "v0.5.1",
            "v0.5.0",
            "v0.4.16-cfp.12",
            "v0.4.15",
            "v0.4.14",
            "v0.4.13",
            "v0.4.12",
            "v0.4.11",
            "v0.4.10",
            "v0.4.9",
            "v0.4.8",
            "v0.4.7",
            "v0.4.6",
            "v0.4.5",
            "v0.4.4",
            "v0.4.3",
            "v0.4.2",
            "v0.4.1",
            "v0.4.0",
            "v0.3.0",
            "v0.2.0",
            "v0.1.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-42047.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:27.081641909Z",
      "provider": "osv",
      "references": [
        "https://github.com/inngest/inngest-js/releases/tag/inngest%403.54.1",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/42xxx/CVE-2026-42047.json",
        "https://github.com/inngest/inngest-js/security/advisories/GHSA-2jf5-6wwv-vhxx",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-42047"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-200",
          "CWE-497"
        ],
        "cna_assigner": "GitHub_M",
        "unresolved_ranges": [
          {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "3.22.0"
                  },
                  {
                    "fixed": "3.54.0"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StringRangeExpression"
              }
            ]
          },
          {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "3.22.0"
                  },
                  {
                    "last_affected": "3.53.1"
                  },
                  {
                    "fixed": "3.54.0"
                  }
                ],
                "source": "DESCRIPTION"
              }
            ]
          }
        ],
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/42xxx/CVE-2026-42047.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-42047",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 493848,
  "published_at": "2026-05-07T20:38:36.171+00:00"
}