SQL Injection Affecting @posthog/plugin-server package, versions *


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.28% (52nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about SQL Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-POSTHOGPLUGINSERVER-10060221
  • published8 May 2025
  • disclosed23 Apr 2025
  • creditMehmet INCE

Introduced: 23 Apr 2025

NewCVE-2025-1520  (opens in a new tab)
CWE-89  (opens in a new tab)

How to fix?

There is no fixed version for @posthog/plugin-server.

Overview

@posthog/plugin-server is a PostHog Plugin Server

Affected versions of this package are vulnerable to SQL Injection via the SQL parser. An attacker can execute arbitrary code in the context of the database account by leveraging the lack of proper validation of a user-supplied string before using it to construct SQL queries.

Note: For users with self-hosted deploys the fixed version is available by cloning the latest version of https://github.com/PostHog/posthog.

CVSS Base Scores

version 4.0
version 3.1