Intel

AIKIDO-2026-906125

pact_broker is vulnerable to SQL Injection

SQL InjectionGHSA-62x5-j6g8-85r5 Published Yesterday

87

High Risk

This Affects:

RUBYpact_broker
2.20.0 - 2.120.0
Fixed in 2.121.0
Are you affected? Scan for Free

TL;DR

The tag deletion service in lib/pact_broker/tags/service.rb interpolates the URL supplied tag_name into a raw DELETE statement and runs it through Sequel::Database#run. A crafted tag name can close the string literal and append stacked SQL statements that read, change, or drop tables and forge verification results used by deployment gates. The fix replaces the interpolated query with a Sequel dataset condition that binds the tag name as a literal value.

Who does this affect?

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

Background info

pact_broker is vulnerable to SQL Injection in versions 2.20.0 - 2.120.0.

How to fix this

Upgrade the pact_broker 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