{"id":"CVE-2024-22048","summary":"govuk_tech_docs XSS Vulnerability","details":"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.","aliases":["GHSA-x2xw-hw8g-6773"],"modified":"2026-08-12T03:51:43.730408933Z","published":"2024-01-04T20:39:59.670Z","database_specific":{"cna_assigner":"VulnCheck","cwe_ids":["CWE-79"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/22xxx/CVE-2024-22048.json"},"references":[{"type":"WEB","url":"https://github.com/alphagov/tech-docs-gem/releases/tag/v3.3.1"},{"type":"WEB","url":"https://rubygems.org"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/22xxx/CVE-2024-22048.json"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-x2xw-hw8g-6773"},{"type":"ADVISORY","url":"https://github.com/alphagov/tech-docs-gem/security/advisories/GHSA-x2xw-hw8g-6773"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-22048"},{"type":"ADVISORY","url":"https://vulncheck.com/advisories/vc-advisory-GHSA-x2xw-hw8g-6773"},{"type":"REPORT","url":"https://github.com/alphagov/tech-docs-gem/pull/323"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/alphagov/tech-docs-gem","events":[{"introduced":"2add21e41fbaf315359ce37348d245256bc256be"},{"fixed":"f670bf5d9f948fc668437b9757e7b52a17bbf04a"}],"database_specific":{"cpe":"cpe:2.3:a:gov.uk:govuk_tech_docs:*:*:*:*:*:ruby:*:*","extracted_events":[{"introduced":"2.0.2"},{"fixed":"3.3.1"}],"source":["AFFECTED_FIELD","CPE_RANGE","REFERENCES"]}}],"versions":["v3.3.0","v3.2.1","v3.2.0","v3.1.0","v3.0.1","v3.0.0","v2.4.3","v2.4.2","v2.4.1","v2.4.0","v2.3.0","v2.1.0","v2.0.11","v2.0.9","v2.0.7","v2.0.6","2.0.2"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-22048.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"}]}