Intel

AIKIDO-2026-869435

pact_broker is vulnerable to Cross-Site Scripting (XSS)

Cross-Site Scripting (XSS) Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published 4 days ago

54

Medium Risk

This Affects:

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

TL;DR

Published pact content such as consumer/provider names and interaction descriptions is converted to HTML in the Broker UI after only * and _ are escaped. Structural Markdown characters like [, ], (, ), and backticks stay unescaped, so crafted pact fields inject Markdown links and images, leading to stored cross-site scripting. The fix escapes the full set of CommonMark special characters via Pact::Doc::MARKDOWN_SPECIAL_CHARS_REGEXP.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you view the generated pact documentation for contracts published by untrusted users.

Background info

pact_broker is vulnerable to Cross-Site Scripting (XSS) in versions 1.0.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