CVE-2024-22048
MEDIUM 6.1CVSS 3.1govuk_tech_docs vulnerable to unescaped HTML on search results page
govuk_tech_docs versions from 2.0.2 to before 3.3.1 are vulnerable to a cross-site scripting vulnerability. Malicious JavaScript may be executed in the user's browser if a malicious search result is displayed on the search page.
- Published
- 4 Jan 2024
- Last modified
- 14 Jul 2026
- Assigned by
- disclosure@vulncheck.com
- NVD status
- Modified
- Weakness
- CWE-79CWE-80
- Also known as
- GHSA-x2xw-hw8g-6773
- Sources
- NVDJSONOSV GHSA-x2xw-hw8g-6773JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | gov.uk | govuk_tech_docscpe:2.3:a:gov.uk:govuk_tech_docs:*:*:*:*:*:ruby:*:* |
>= 2.0.2, < 3.3.1 | 3.3.1 |
| OSV | RubyGems | govuk_tech_docs | >= 2.0.2, < 3.3.1 | 3.3.1 |
References
- https://github.com/advisories/GHSA-x2xw-hw8g-6773 · Patch, Vendor Advisory
- https://github.com/alphagov/tech-docs-gem/pull/323 · Patch, Vendor Advisory, WEB
- https://github.com/alphagov/tech-docs-gem/releases/tag/v3.3.1 · Patch, Release Notes, WEB
- https://github.com/alphagov/tech-docs-gem/security/advisories/GHSA-x2xw-hw8g-6773 · Vendor Advisory, WEB
- https://vulncheck.com/advisories/vc-advisory-GHSA-x2xw-hw8g-6773 · Patch, Third Party Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2024-22048 · ADVISORY
- https://github.com/alphagov/tech-docs-gem/commit/a51c7058cec46bf2a4e25a1da62b14ac3fd46b53 · WEB
- https://github.com/alphagov/tech-docs-gem · PACKAGE
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/govuk_tech_docs/CVE-2024-22048.yml · WEB
History
- 25 Nov 2026 20:37 UTC · NVD: first stored (published 4 Jan 2024)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 11 Apr 2023)