HTTP Response Splitting Vulnerability in Ruby Package

ruby Updated 02 Oct 2025

Summary

03/04/2018
N/A
Yes i
Medium
5.3

ALPINE-CVE-2017-17742: Ruby before 2.2.10, 2.3.x before 2.3.7, 2.4.x before 2.4.4, 2.5.x before 2.5.1, and 2.6.0-preview1 allows an HTTP Response Splitting attack. Affects ruby versions < 2.5.1-r0. Fixed in 2.5.1-r0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Ruby is a dynamic, open-source programming language known for its simplicity and productivity. It is widely used for web development, particularly with the Ruby on Rails framework. The Ruby package provides essential libraries and tools for building applications. However, certain versions of Ruby are susceptible to an HTTP Response Splitting vulnerability, which can compromise the integrity of web applications using this package.

Vulnerability Detail

The vulnerability, identified as CVE-2017-17742, affects Ruby versions prior to 2.2.10, 2.3.x before 2.3.7, 2.4.x before 2.4.4, 2.5.x before 2.5.1, and 2.6.0-preview1. It allows an attacker to perform an HTTP Response Splitting attack by injecting crafted key-value pairs into HTTP responses generated by the WEBrick HTTP server. This can lead to various security issues, including cache poisoning and cross-site scripting (XSS) attacks, potentially compromising user data and application integrity.

How To Fix

Minimum fixed version

2.5.1-r0

This is the first release that contains the fix.

sudo apk add --upgrade ruby

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If an immediate update is not feasible, consider disabling the WEBrick server or using an alternative HTTP server that is not affected by this vulnerability until the package can be updated.

Conclusion

The HTTP Response Splitting vulnerability in Ruby poses significant risks to web applications. It is crucial for developers to update their Ruby packages to the latest patched versions to mitigate these risks. Utilizing tools like Vulert can help in monitoring and managing vulnerabilities effectively.

See every vulnerability recorded for ruby →

Share this vulnerability

FAQ

CVE-2017-17742 is a vulnerability in Ruby that allows for HTTP Response Splitting attacks, enabling attackers to manipulate HTTP responses.

Affected versions include Ruby before 2.2.10, 2.3.x before 2.3.7, 2.4.x before 2.4.4, 2.5.x before 2.5.1, and 2.6.0-preview1.

The risks include cache poisoning, cross-site scripting (XSS), and other security issues that can compromise user data and application integrity.

You can use the Vulert platform to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check your application without needing to sign up.

The CVSS score for this vulnerability is 5.3, indicating a moderate level of severity.

Related vulnerabilities

Recent vulnerabilities recorded for ruby.

How To Fix

Minimum fixed version

2.5.1-r0

This is the first release that contains the fix.

sudo apk add --upgrade ruby

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback