# CVE-2024-22048: govuk_tech_docs XSS Vulnerability

Status: published. Published: 2024-01-04. Updated: 2026-11-08.

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.

## Remediation

- fix: The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches. (source: CNA: VulnCheck) — https://github.com/alphagov/tech-docs-gem/pull/323
- fix: The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches. (source: ADP: CVE) — https://github.com/alphagov/tech-docs-gem/pull/323
- fix: govuk_tech_docs (RubyGems): OSV reports a fixed version 3.3.1. Check the advisory for supported release branches. (source: OSV GHSA-x2xw-hw8g-6773) — https://github.com/advisories/GHSA-x2xw-hw8g-6773

## Affected products and versions

-  /  (govuk_tech_docs): ≥ 2.0.2; < 3.3.1 (affected, semver). Source: CNA: VulnCheck
-  / govuk_tech_docs (govuk_tech_docs): 2.0.10 (affected, RubyGems); 2.0.11 (affected, RubyGems); 2.0.12 (affected, RubyGems); 2.0.13 (affected, RubyGems); 2.0.2 (affected, RubyGems); 2.0.3 (affected, RubyGems); 2.0.4 (affected, RubyGems); 2.0.5 (affected, RubyGems); 2.0.6 (affected, RubyGems); 2.0.7 (affected, RubyGems); 2.0.8 (affected, RubyGems); 2.0.9 (affected, RubyGems); 2.1.0 (affected, RubyGems); 2.1.1 (affected, RubyGems); 2.2.0 (affected, RubyGems); 2.2.1 (affected, RubyGems); 2.2.2 (affected, RubyGems); 2.3.0 (affected, RubyGems); 2.4.0 (affected, RubyGems); 2.4.1 (affected, RubyGems); 2.4.2 (affected, RubyGems); 2.4.3 (affected, RubyGems); 3.0.0 (affected, RubyGems); 3.0.1 (affected, RubyGems); 3.1.0 (affected, RubyGems); 3.2.0 (affected, RubyGems); 3.2.1 (affected, RubyGems); 3.3.0 (affected, RubyGems); Ecosystem version events: introduced 2.0.2; fixed 3.3.1. Source: OSV GHSA-x2xw-hw8g-6773

## Severity and prioritization

- CVSS 3.1: 6.1 (medium); CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N; source: ADP: CISA-ADP

- CISA KEV: No listing in collected sources

- EPSS: 0.50% as of 2026-11-08; percentile 43.37%

- SSVC: exploitation none; automatable no; technical impact partial; source ADP: CISA-ADP

- Weaknesses: CWE-79

## Exploit evidence

No exploit evidence in collected sources. This is not proof of no exploitation.

## References

- https://github.com/alphagov/tech-docs-gem/security/advisories/GHSA-x2xw-hw8g-6773 (CNA: VulnCheck; vendor-advisory)

- https://github.com/alphagov/tech-docs-gem/pull/323 (CNA: VulnCheck; issue-tracking, patch)

- https://github.com/alphagov/tech-docs-gem/releases/tag/v3.3.1 (CNA: VulnCheck; related, release-notes)

- https://github.com/advisories/GHSA-x2xw-hw8g-6773 (CNA: VulnCheck; vendor-advisory)

- https://vulncheck.com/advisories/vc-advisory-GHSA-x2xw-hw8g-6773 (CNA: VulnCheck; third-party-advisory)

- https://github.com/alphagov/tech-docs-gem/security/advisories/GHSA-x2xw-hw8g-6773 (ADP: CVE; vendor-advisory, x_transferred)

- https://github.com/alphagov/tech-docs-gem/pull/323 (ADP: CVE; patch, x_transferred)

- https://github.com/alphagov/tech-docs-gem/releases/tag/v3.3.1 (ADP: CVE; related, x_transferred)

- https://github.com/advisories/GHSA-x2xw-hw8g-6773 (ADP: CVE; third-party-advisory, x_transferred)

- https://vulncheck.com/advisories/vc-advisory-GHSA-x2xw-hw8g-6773 (ADP: CVE; third-party-advisory, x_transferred)

- https://github.com/advisories/GHSA-x2xw-hw8g-6773 (OSV / GitHub Security Advisories; advisory)

- https://osv.dev/vulnerability/GHSA-x2xw-hw8g-6773 (OSV / GitHub Security Advisories; osv)

## Provenance

- CNA: VulnCheck: https://www.cve.org/CVERecord?id=CVE-2024-22048; retrieved 2026-11-08; source updated 2026-11-08

- OSV / GitHub Security Advisories: https://osv.dev/vulnerability/GHSA-x2xw-hw8g-6773; retrieved 2026-11-08; source updated 2026-07-08

- FIRST EPSS: https://api.first.org/data/v1/epss?cve=CVE-2024-22048; retrieved 2026-11-08; source updated Not reported

Revision: 18f248f05617fb81c491e09ac709c3fd77a0422e04f9ab1f04bbb8a8fd231e8f

Canonical: https://y2.dev/cve/CVE-2024-22048

## Agent and API access

Public CVE pages, Markdown, and JSON are free to read without an account or API key.

- Public catalog: https://y2.dev/cve/index.json. Follow nextCursor with the same search, filters, sort, and limit (1–100). A null cursor marks the end.

- WebMCP: search_cve_disclosures, get_cve_disclosure, get_cve_page_markdown, get_y2_cve_access. Available in compatible browsers.

- Cyber API: https://api.y2.dev/api/v2/cyber/cves and https://api.y2.dev/api/v2/cyber/cves/{cveId}.

- Y2 Pro or Elite: create a workspace API key with the intel:cyber scope and send Authorization: Bearer <Y2_API_KEY>. Setup: https://y2.dev/docs/api/create-key.

- x402: Pay per request without an account or API key. Omit Authorization, read the HTTP 402 PAYMENT-REQUIRED challenge, validate its current requirements, and retry with PAYMENT-SIGNATURE through an authorized payment client. These browser tools never make payments. Guide: https://y2.dev/docs/api/x402.

- OpenAPI: https://y2.dev/api/openapi.yaml. Agent access metadata: https://y2.dev/cve/agent.json.

Collected public records only. Check source status for coverage and freshness.