Advisory

GHSA-f7xc-5852-fj99

Also known as: CVE-2026-33183

Summary

Saloon has a Fixture Name Path Traversal Vulnerability

Details

Impact
Users with MockResponse fixtures that use path traversal.

Patches
Upgrade to Saloon v4+

Upgrade guide: https://docs.saloon.dev/upgrade/upgrading-from-v3-to-v4

Description
Fixture names were used to build file paths under the configured fixture directory without validation. A name containing path segments (e.g. ../traversal or ../../etc/passwd) resulted in a path outside that directory. When the application read a fixture (e.g. for mocking) or wrote one (e.g. when recording responses), it could read or write files anywhere the process had access. If the fixture name was derived from user or attacker-controlled input (e.g. request parameters or config), this constituted a path traversal vulnerability and could lead to disclosure of sensitive files or overwriting of critical files. The fix adds validation in the fixture layer (rejecting names with /, \, .., or null bytes, and restricting to a safe character set) and defence-in-depth in the storage layer (ensuring the resolved path remains under the base directory before any read or write).

Credits
Saloon thanks @HuajiHD for finding the issue and recommending solutions and @JonPurvis for applying the fix.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2026-03-25 22:00 UTC
Modified
2026-03-30 14:03 UTC

Affected packages and fixes

saloonphp/saloon

Packagist · All systems

Affected

  • introduced 0, fixed 4.0.0 (ecosystem)

Fixed versions

4.0.0

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences