Intel

AIKIDO-2025-10850

github.com/uptrace/bun/driver/pgdriver is vulnerable to SQL Injection

Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Nov 27, 2025
November 27, 2025

30

CVE Score

Low

SQL Injection

Are you affected? Scan for Free

TL;DR

Affected versions of this package could be vulnerable to SQL injection when PostgreSQL’s standard_conforming_strings is explicitly set to off, a legacy configuration that modern deployments rarely use. Because this setting has defaulted to on for over a decade, the practical impact is minimal. The fix enforces standard_conforming_strings=on and client_encoding=UTF8 to ensure safe string-literal handling, though testing these conditions is difficult without legacy or deliberately misconfigured PostgreSQL instances.

How do I fix this?

Upgrade the github.com/uptrace/bun/driver/pgdriver library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you explicitly set standard_conforming_strings=off.

Versions

0.1.0 - 1.2.15

Fixed in 1.2.16

Background info

github.com/uptrace/bun/driver/pgdriver is vulnerable to SQL Injection in versions 0.1.0 - 1.2.15.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea