Skip to content

chore(release): staging to production - 2025.11.24 - #729

Merged
ct3685 merged 1 commit into
productionfrom
staging
Nov 24, 2025
Merged

chore(release): staging to production - 2025.11.24#729
ct3685 merged 1 commit into
productionfrom
staging

Conversation

@github-actions

Copy link
Copy Markdown

🚀 Release: Staging to Production

Release Date: 2025-11-24

Changes in this release


This PR is automatically created/updated when commits are pushed to staging.
Merging this PR will trigger the release workflow to create a new GitHub release.

…og-node) (#728)

## Title
hotfix: remove Shai-Hulud-2 vulnerable dependencies (kill-port,
posthog-node)

## Description

### Motivation & Scope
This change is a focused hotfix to address the Shai-Hulud-2 security
vulnerability by removing the affected dependencies and disabling the
associated telemetry functionality.

Scope is limited to:
- Removing vulnerable dependencies (`kill-port`, `posthog-node`) and
their transitive deps from the dependency tree.
- Converting the telemetry implementation to a no-op while preserving
its public API.

### Changes

- **Root `package.json`**
  - Removed dev dependency:
    - `"kill-port": "^2.0.1"`.

- **`packages/server/package.json`**
  - Removed dependency:
    - `"posthog-node": "^3.6.3"`.

- **`packages/server/src/utils/telemetry.ts`**
  - Removed `PostHog` import from `posthog-node`.
- Removed `Telemetry.postHog` client field and initialization logic that
depended on `POSTHOG_PUBLIC_API_KEY`.
- Updated `Telemetry` constructor to document that PostHog has been
removed due to the Shai-Hulud-2 security vulnerability and telemetry is
now disabled.
- Updated `sendTelemetry` and `flush` to be explicit no-op
implementations with comments explaining that telemetry is disabled but
the API is preserved.

- **`pnpm-lock.yaml`**
  - Lockfile updated to:
- Remove `kill-port`, `posthog-node`, and their transitive dependencies
(`get-them-args`, `shell-exec`, `rusha`, etc.).
- Normalize a few dependency graph annotations (e.g.,
`@auth0/nextjs-auth0`, `next-auth`, webpack-related plugins,
eslint-related packages) as a result of the lockfile regeneration
without the removed packages.

### Impact

- **Functional Behavior**
  - Telemetry collection via PostHog is completely disabled.
- Calls to `Telemetry.id()`, `Telemetry.sendTelemetry()`, and
`Telemetry.flush()` still exist and remain callable, but `sendTelemetry`
and `flush` are now no-ops.
- No user-facing API or behavior should change outside of the absence of
analytics/telemetry events.

- **Security**
- Removes dependencies explicitly tied to the Shai-Hulud-2
vulnerability:
    - `kill-port`
    - `posthog-node`
- Also drops their transitive dependencies from the install surface,
reducing potential security exposure.

- **Dependencies / Build**
- Dependency graph is simplified with the removal of `kill-port` and
`posthog-node`.
  - No new dependencies are introduced.
- Lockfile updates are consistent with the package.json removals and
underlying resolver behavior.

### Breaking Changes / Migrations

- No breaking API or schema changes are apparent from the diff.
- Telemetry data will stop being recorded and sent, which may be a
behavioral change for any downstream analytics or monitoring relying on
PostHog events.
- Environment variable `POSTHOG_PUBLIC_API_KEY` is no longer used by the
server code.

### Testing Notes

- No tests were added or modified in this diff.
- Recommended follow-up:
- Ensure existing code paths that call `Telemetry` methods continue to
function without relying on side effects.
- Optionally, add unit tests asserting that `Telemetry.sendTelemetry`
and `Telemetry.flush` are safe no-ops (do not throw, do not require any
configuration).
@vercel

vercel Bot commented Nov 24, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Updated (UTC)
answerai-docs Building Building Preview Nov 24, 2025 9:23pm
the-answerai Building Building Preview Nov 24, 2025 9:23pm

@ct3685
ct3685 merged commit 89bf873 into production Nov 24, 2025
10 of 11 checks passed
@maxtechera
maxtechera temporarily deployed to staging - aai-unified2-flowise-moonstruck November 24, 2025 21:24 — with Render Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants