# CVE-2024-22048: govuk_tech_docs XSS Vulnerability

- Severity: Medium 6.1 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.50%, higher than 44% of CVEs (2026-12-01)
- Published: 2023-04-11T15:41:30.000Z
- Modified: 2026-11-08T13:59:54.237Z
- Also known as: GHSA-x2xw-hw8g-6773
- Weaknesses: CWE-79, CWE-80
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: VulnCheck

## Description

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.

(As written by CVE List.)

## Affected

- govuk_tech_docs: from 2.0.2 before 3.3.1
- govuk_tech_docs (RubyGems): from 2.0.2 before 3.3.1
- gov.uk govuk_tech_docs: from 2.0.2 before 3.3.1

## Every score

- CISA-ADP: 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`
- GitHub: rating Low
- NVD: 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`

## References

- <https://github.com/alphagov/tech-docs-gem/security/advisories/GHSA-x2xw-hw8g-6773> (vendor-advisory, web)
- <https://github.com/alphagov/tech-docs-gem/pull/323> (issue-tracking, patch, vendor-advisory, web)
- <https://github.com/alphagov/tech-docs-gem/releases/tag/v3.3.1> (patch, related, release-notes, web)
- <https://github.com/advisories/GHSA-x2xw-hw8g-6773> (patch, third-party-advisory, vendor-advisory)
- <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)

## Sources

- CVE List: [CVE-2024-22048](https://www.cve.org/CVERecord?id=CVE-2024-22048), CVE Terms of Use, modified 2026-11-08
- GitHub Advisory Database: [GHSA-x2xw-hw8g-6773](https://github.com/advisories/GHSA-x2xw-hw8g-6773), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2024-22048](https://nvd.nist.gov/vuln/detail/CVE-2024-22048), Public domain, modified 2026-07-14

---

Page: https://cve.day/CVE-2024-22048 · Whole record: https://cve.day/CVE-2024-22048.json · Rebuilt by cve.day 2026-11-25T22:58:35.922Z
