Live threats

All CVEs / Rubygems

CVE-2018-1000078Rubygems

Medium 6.1 No auth needed

Priority
52
CVSS 3.0
6.1
EPSS
2.7%
probability of exploitation in 30 days · percentile 87
Auth required
No
Published
Mar 13, 2018
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-79
Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

What happens

RubyGems version Ruby 2.2 series: 2.2.9 and earlier, Ruby 2.3 series: 2.3.6 and earlier, Ruby 2.4 series: 2.4.3 and earlier, Ruby 2.5 series: 2.5.0 and earlier, prior to trunk revision 62422 contains a Cross Site Scripting (XSS) vulnerability in gem server display of homepage attribute that can result in XSS. This attack appear to be exploitable via the victim must browse to a malicious gem on a vulnerable gem server. This vulnerability appears to have been fixed in 2.7.6.

Original NVD text.

What to do

  1. Apply the vendor's security update for Rubygems.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Maven org.jruby:jruby-stdlib < 9.1.16.0 9.1.16.0 —
RubyGems rubygems-update < 2.7.6 2.7.6 gem "rubygems-update", ">= 2.7.6"

Per OSV / GitHub Advisories (GHSA-87qx-g5wg-mwmj). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
rubygemsrubygems≤ 2.2.9
rubygemsrubygems≤ 2.3.6
rubygemsrubygems≤ 2.4.3
rubygemsrubygems≤ 2.5.0
debiandebian_linux7.0

Official sources

References

Links published by the sources. Open them with care.