<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/ghsa-xg28-cqw2-pggq-gemstash-gemstash-caches-and-serves-unvalidated-dependency-data-from-an-upstr-jbvwaxfi2" -->

---
title: GHSA-xg28-cqw2-pggq (gemstash): Gemstash caches and...
description: Gemstash caches and serves unvalidated dependency data fetched from an upstream source. The /api/v1/dependencies.json endpoint accepted entries of any shape,...
canonical: https://daily.dev/posts/ghsa-xg28-cqw2-pggq-gemstash-gemstash-caches-and-serves-unvalidated-dependency-data-from-an-upstr-jbvwaxfi2
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: GHSA-xg28-cqw2-pggq (gemstash): Gemstash caches and serves unvalidated dependency data from an upstream | daily.dev
og:description: Gemstash caches and serves unvalidated dependency data fetched from an upstream source. The /api/v1/dependencies.json endpoint accepted entries of any shape,...
og:url: https://daily.dev/posts/ghsa-xg28-cqw2-pggq-gemstash-gemstash-caches-and-serves-unvalidated-dependency-data-from-an-upstr-jbvwaxfi2
og:image: https://api.daily.dev/og/posts/JbVwaXfI2.png
og:image:alt: GHSA-xg28-cqw2-pggq (gemstash): Gemstash caches and serves unvalidated dependency data from an upstream
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

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

**[RUBYLAND](https://daily.dev/sources/rubyla)** · 1 min read · 0 upvotes · 0 comments

## Summary

Gemstash caches and serves unvalidated dependency data fetched from an upstream source. The /api/v1/dependencies.json endpoint accepted entries of any shape, extra fields, and even gems that were never requested, then cached and handed them to clients as JSON or a Marshal dump. Impact is limited since the cache is scoped per gem source and JSON can't produce Ruby objects, but an upstream could still plant arbitrary structures and unrequested gems into the cache. The issue is fixed in Gemstash version 2.9.0.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://rubysec.com/advisories/GHSA-xg28-cqw2-pggq>

## Questions this post answers

### What is GHSA-xg28-cqw2-pggq in Gemstash and how is it fixed?

It's a vulnerability where Gemstash caches and serves dependency data from an upstream without validating it, accepting entries of any shape, extra fields, or even gems never requested. The impact is limited because the cache is scoped per gem source and JSON can't create Ruby objects, but an upstream could still poison the cache. It's patched in Gemstash version 2.9.0.

_Teams running Gemstash proxies can track advisories like this one on daily.dev._

## Similar posts on daily.dev

- [Gemstash 2.9.0 security release, and the end of Gemstash](https://daily.dev/posts/gemstash-2-9-0-security-release-and-the-end-of-gemstash-67gnyew44) · RUBYLAND · 0 upvotes · 0 comments
- [GHSA-wgrc-4g2v-9qxv \(gemstash\): Gem push reads the whole request body into memory before checking the API key](https://daily.dev/posts/ghsa-wgrc-4g2v-9qxv-gemstash-gem-push-reads-the-whole-request-body-into-memory-before-checking-th-kzjlf7um4) · RUBYLAND · 0 upvotes · 0 comments
- [Rails World '26: The RubyGems Compact Index](https://daily.dev/posts/rails-world-26-the-rubygems-compact-index-71jopqfqg) · Ruby Flow · 1 upvotes · 0 comments

---

Tags: [#security](https://daily.dev/tags/security), [#ruby](https://daily.dev/tags/ruby)

[View this post on daily.dev](https://daily.dev/posts/ghsa-xg28-cqw2-pggq-gemstash-gemstash-caches-and-serves-unvalidated-dependency-data-from-an-upstr-jbvwaxfi2)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"GHSA-xg28-cqw2-pggq (gemstash): Gemstash caches and serves unvalidated dependency data from an upstream","url":"https://daily.dev/posts/ghsa-xg28-cqw2-pggq-gemstash-gemstash-caches-and-serves-unvalidated-dependency-data-from-an-upstr-jbvwaxfi2","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/ghsa-xg28-cqw2-pggq-gemstash-gemstash-caches-and-serves-unvalidated-dependency-data-from-an-upstr-jbvwaxfi2"},"datePublished":"2026-11-20T19:24:56.599Z","dateModified":"2026-11-20T19:25:18.206Z","description":"Gemstash caches and serves unvalidated dependency data fetched from an upstream source. The /api/v1/dependencies.json endpoint accepted entries of any shape,...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/5fa7bf38a8a9c178c1d458f9f735556c?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/5fa7bf38a8a9c178c1d458f9f735556c?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"RUBYLAND","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"RUBYLAND","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/rubyla","url":"https://daily.dev/sources/rubyla"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/ghsa-xg28-cqw2-pggq-gemstash-gemstash-caches-and-serves-unvalidated-dependency-data-from-an-upstr-jbvwaxfi2","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"security,ruby","timeRequired":"PT1M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"RUBYLAND","item":"https://daily.dev/sources/rubyla"},{"@type":"ListItem","position":3,"name":"GHSA-xg28-cqw2-pggq (gemstash): Gemstash caches and serves unvalidated dependency data from an upstream"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/ghsa-xg28-cqw2-pggq-gemstash-gemstash-caches-and-serves-unvalidated-dependency-data-from-an-upstr-jbvwaxfi2#faq","mainEntity":[{"@type":"Question","name":"What is GHSA-xg28-cqw2-pggq in Gemstash and how is it fixed?","acceptedAnswer":{"@type":"Answer","text":"It's a vulnerability where Gemstash caches and serves dependency data from an upstream without validating it, accepting entries of any shape, extra fields, or even gems never requested. The impact is limited because the cache is scoped per gem source and JSON can't create Ruby objects, but an upstream could still poison the cache. It's patched in Gemstash version 2.9.0. Teams running Gemstash proxies can track advisories like this one on daily.dev."}}]}
```

