Lookup for vulnerabilities affecting packages.

Vulnerability_idVCID-6u9j-ete8-2ycd
Summary
govuk_tech_docs vulnerable to unescaped HTML on search results page
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.
Aliases
0
alias CVE-2024-22048
1
alias GHSA-x2xw-hw8g-6773
2
alias GMS-2023-1026
Fixed_packages
0
url pkg:gem/govuk_tech_docs@3.3.1
purl pkg:gem/govuk_tech_docs@3.3.1
is_vulnerable false
affected_by_vulnerabilities
resource_url http://public2.vulnerablecode.io/packages/pkg:gem/govuk_tech_docs@3.3.1
Affected_packages
0
url pkg:gem/govuk_tech_docs@2.0.2
purl pkg:gem/govuk_tech_docs@2.0.2
is_vulnerable true
affected_by_vulnerabilities
0
vulnerability VCID-6u9j-ete8-2ycd
1
vulnerability VCID-kuf5-26ar-h7fq
resource_url http://public2.vulnerablecode.io/packages/pkg:gem/govuk_tech_docs@2.0.2
References
0
reference_url https://api.first.org/data/v1/epss?cve=CVE-2024-22048
reference_id
reference_type
scores
0
value 0.0179
scoring_system epss
scoring_elements 0.83066
published_at 2026-05-30T12:55:00Z
url https://api.first.org/data/v1/epss?cve=CVE-2024-22048
1
reference_url https://github.com/alphagov/tech-docs-gem
reference_id
reference_type
scores
url https://github.com/alphagov/tech-docs-gem
2
reference_url https://github.com/alphagov/tech-docs-gem/commit/a51c7058cec46bf2a4e25a1da62b14ac3fd46b53
reference_id
reference_type
scores
url https://github.com/alphagov/tech-docs-gem/commit/a51c7058cec46bf2a4e25a1da62b14ac3fd46b53
3
reference_url https://github.com/alphagov/tech-docs-gem/pull/323
reference_id
reference_type
scores
url https://github.com/alphagov/tech-docs-gem/pull/323
4
reference_url https://github.com/alphagov/tech-docs-gem/releases/tag/v3.3.1
reference_id
reference_type
scores
url https://github.com/alphagov/tech-docs-gem/releases/tag/v3.3.1
5
reference_url https://nvd.nist.gov/vuln/detail/CVE-2024-22048
reference_id CVE-2024-22048
reference_type
scores
url https://nvd.nist.gov/vuln/detail/CVE-2024-22048
6
reference_url https://github.com/rubysec/ruby-advisory-db/blob/master/gems/govuk_tech_docs/CVE-2024-22048.yml
reference_id CVE-2024-22048.YML
reference_type
scores
url https://github.com/rubysec/ruby-advisory-db/blob/master/gems/govuk_tech_docs/CVE-2024-22048.yml
7
reference_url https://github.com/advisories/GHSA-x2xw-hw8g-6773
reference_id GHSA-x2xw-hw8g-6773
reference_type
scores
url https://github.com/advisories/GHSA-x2xw-hw8g-6773
8
reference_url https://github.com/alphagov/tech-docs-gem/security/advisories/GHSA-x2xw-hw8g-6773
reference_id GHSA-x2xw-hw8g-6773
reference_type
scores
url https://github.com/alphagov/tech-docs-gem/security/advisories/GHSA-x2xw-hw8g-6773
Weaknesses
0
cwe_id 79
name Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
description The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
1
cwe_id 80
name Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)
description The product receives input from an upstream component, but it does not neutralize or incorrectly neutralizes special characters such as <, >, and & that could be interpreted as web-scripting elements when they are sent to a downstream component that processes web pages.
2
cwe_id 937
name OWASP Top Ten 2013 Category A9 - Using Components with Known Vulnerabilities
description Weaknesses in this category are related to the A9 category in the OWASP Top Ten 2013.
3
cwe_id 1035
name OWASP Top Ten 2017 Category A9 - Using Components with Known Vulnerabilities
description Weaknesses in this category are related to the A9 category in the OWASP Top Ten 2017.
Exploits
Severity_range_scorenull
Exploitabilitynull
Weighted_severitynull
Risk_scorenull
Resource_urlhttp://public2.vulnerablecode.io/vulnerabilities/VCID-6u9j-ete8-2ycd