Intel

AIKIDO-2026-63046

serverpod is vulnerable to SQL Injection

SQL InjectionGHSA-868m-gf4j-xr8g Published 4 days ago

98

Critical Risk

This Affects:

DARTserverpod
0.9.19 - 2.9.3
Fixed in 2.9.4
3.0.0 - 3.4.11
Fixed in 3.4.12
Are you affected? Scan for Free

TL;DR

Serverpod's PostgreSQL and SQLite value encoders choose an encoding from a value's string content instead of the target column type. A string that begins with decode(' and ends with ', 'base64') is treated as serialized ByteData and inlined into SQL without escaping, so user controlled strings passed to ORM insert, update, or where comparisons break out of the query. This lets callers read arbitrary tables, bypass equality checks, and modify data at the application's database privileges through the documented ORM API with no raw query call. The fix drives encoding from the column type definition so text values are always escaped.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

serverpod is vulnerable to SQL Injection in versions 0.9.19 - 2.9.3 and 3.0.0 - 3.4.11.

How to fix this

Upgrade the serverpod library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform