RubySec

Providing security resources for the Ruby community

GHSA-xg28-cqw2-pggq (gemstash): Gemstash caches and serves unvalidated dependency data from an upstream

Gemstash caches and serves unvalidated dependency data from an upstream

Published: November 19, 2026

SECURITY IDENTIFIERS

GEM

gemstash

LIBRARY

RubyGems

PATCHED VERSIONS

>= 2.9.0

DESCRIPTION

Summary

The dependency data Gemstash fetches from an upstream with /api/v1/dependencies.json is cached and handed to clients, as JSON or as a Marshal dump Gemstash builds. It was cached and passed on as it came: entries of any shape, with any extra fields, and entries for gems that were never requested were all accepted and cached.

Impact

Limited: the cache is kept per gem source, so only clients using that same source see the data, and JSON cannot produce Ruby objects. It still lets an upstream plant arbitrary structures and unrequested gems into the Gemstash cache and into what its clients deserialize.

RELATED