logo

CVE-2024-22048 govuk_tech_docs

Package

Manager: gem
Name: govuk_tech_docs
Vulnerable Version: >=2.0.2 <3.3.1

Severity

Level: Low

CVSS v3.1: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N/E:U/RL:O/RC:C

CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N

EPSS: 0.01178 pctl0.77945

Details

govuk_tech_docs vulnerable to unescaped HTML on search results page ### Impact Pages that are indexed in search results have their entire contents indexed, including any HTML code snippets. These HTML snippets would appear in the search results unsanitised, so it was possible to render arbitrary HTML or run arbitrary scripts. This is a low risk security issue; to exploit it, an attacker would need to find a way of committing malicious code to a page indexed by a site that uses tech-docs-gem (which are typically not editable by untrusted users). Their code would also be limited by the relatively short length that's rendered in the corresponding search result. Nevertheless, the XSS would then be triggerable by visiting a pre-constructed URL (/search/index.html?q=some+search+term), which users could be tricked into clicking on through social engineering. ### Patches This has been fixed in v3.3.1. HTML is now sanitised in search results.

Metadata

Created: 2023-04-11T15:41:30Z
Modified: 2024-01-05T15:28:23Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/04/GHSA-x2xw-hw8g-6773/GHSA-x2xw-hw8g-6773.json
CWE IDs: ["CWE-79", "CWE-80"]
Alternative ID: GHSA-x2xw-hw8g-6773
Finding: F008
Auto approve: 1