CVE-2024-22048
Ruby vulnerability analysis and mitigation

Overview

CVE-2024-22048 affects govuk_tech_docs versions from 2.0.2 to before 3.3.1. The vulnerability was discovered and disclosed in April 2023, with a patch released in version 3.3.1. This cross-site scripting (XSS) vulnerability affects the search results page of applications using the affected versions (GitHub Advisory).

Technical details

The vulnerability stems from improper sanitization of HTML content in search results. Pages indexed in search results have their entire contents indexed, including HTML code snippets, which would appear unsanitized in the search results. This made it possible to render arbitrary HTML or execute malicious JavaScript code when search results are displayed (GitHub Advisory). The vulnerability has been assigned a CVSS v3.1 base score of 6.1 (Medium) with vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N (NVD).

Impact

The vulnerability allows potential execution of arbitrary HTML or JavaScript code through search results. While the impact is constrained by the limited length of search result snippets, successful exploitation could lead to cross-site scripting attacks when users visit specifically crafted search URLs (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been fixed in version 3.3.1 of govuk_tech_docs by implementing proper HTML sanitization in search results. Users should upgrade to this version or later to address the security issue (GitHub Release).

Additional resources


SourceThis report was generated using AI

Related Ruby vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-22589HIGH7.5
  • RubyRuby
  • spree_core
NoYesJan 10, 2026
GHSA-96qw-h329-v5rgHIGH7.5
  • JavaScriptJavaScript
  • shakapacker
NoYesJan 08, 2026
CVE-2026-22588MEDIUM6.5
  • RubyRuby
  • spree_api
NoYesJan 08, 2026
GHSA-g9jg-w8vm-g96vMEDIUM4.6
  • JavaScriptJavaScript
  • trix
NoYesDec 31, 2025
CVE-2025-61594LOW2.7
  • RubyRuby
  • rubygem-bigdecimal-debuginfo
NoYesDec 30, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management