{"id":"CVE-2024-22048","state":"PUBLISHED","title":"govuk_tech_docs XSS Vulnerability","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.","publishedAt":"2024-01-04T20:39:59.670Z","updatedAt":"2026-07-14T22:54:38.586Z","severity":{"score":6.1,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","source":"CISA-ADP"},"assigner":"VulnCheck","products":["govuk_tech_docs"],"affected":[{"packageName":"govuk_tech_docs","packageURL":"pkg:gem/govuk_tech_docs","defaultStatus":"unaffected","versions":[{"version":"2.0.2","status":"affected","lessThan":"3.3.1","versionType":"semver"}],"collectionURL":"https://rubygems.org"}],"references":["https://github.com/alphagov/tech-docs-gem/security/advisories/GHSA-x2xw-hw8g-6773","https://github.com/alphagov/tech-docs-gem/pull/323","https://github.com/alphagov/tech-docs-gem/releases/tag/v3.3.1","https://github.com/advisories/GHSA-x2xw-hw8g-6773","https://vulncheck.com/advisories/vc-advisory-GHSA-x2xw-hw8g-6773"],"weaknesses":["CWE-79"],"ingestedAt":"2026-10-29T20:06:59.846Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/22xxx/CVE-2024-22048.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-22048","state":"PUBLISHED","datePublished":"2024-01-04T20:39:59.670Z","dateUpdated":"2026-07-14T22:54:38.586Z","assignerShortName":"VulnCheck","assignerOrgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateReserved":"2024-01-04T18:44:53.107Z"},"containers":{"cna":{"title":"govuk_tech_docs XSS Vulnerability","descriptions":[{"lang":"en","value":"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."}],"affected":[{"packageName":"govuk_tech_docs","packageURL":"pkg:gem/govuk_tech_docs","defaultStatus":"unaffected","versions":[{"version":"2.0.2","status":"affected","lessThan":"3.3.1","versionType":"semver"}],"collectionURL":"https://rubygems.org"}],"references":[{"url":"https://github.com/alphagov/tech-docs-gem/security/advisories/GHSA-x2xw-hw8g-6773","tags":["vendor-advisory"]},{"url":"https://github.com/alphagov/tech-docs-gem/pull/323","tags":["issue-tracking"]},{"url":"https://github.com/alphagov/tech-docs-gem/releases/tag/v3.3.1","tags":["related"]},{"url":"https://github.com/advisories/GHSA-x2xw-hw8g-6773","tags":["vendor-advisory"]},{"url":"https://vulncheck.com/advisories/vc-advisory-GHSA-x2xw-hw8g-6773","tags":["third-party-advisory"]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-79","description":"CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"VulnCheck","orgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateUpdated":"2026-07-14T22:54:38.586Z"},"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:a:gov.uk:govuk_tech_docs:*:*:*:*:*:ruby:*:*","versionEndExcluding":"3.3.1","versionStartIncluding":"2.0.2","vulnerable":true}],"negate":false,"operator":"OR"}],"operator":"OR"}],"source":{"discovery":"INTERNAL"},"x_generator":{"engine":"vulncheck"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://github.com/alphagov/tech-docs-gem/security/advisories/GHSA-x2xw-hw8g-6773","tags":["vendor-advisory","x_transferred"]},{"url":"https://github.com/alphagov/tech-docs-gem/pull/323","tags":["patch","x_transferred"]},{"url":"https://github.com/alphagov/tech-docs-gem/releases/tag/v3.3.1","tags":["related","x_transferred"]},{"url":"https://github.com/advisories/GHSA-x2xw-hw8g-6773","tags":["third-party-advisory","x_transferred"]},{"url":"https://vulncheck.com/advisories/vc-advisory-GHSA-x2xw-hw8g-6773","tags":["third-party-advisory","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-01T22:35:34.627Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"CHANGED","version":"3.1","baseScore":6.1,"attackVector":"NETWORK","baseSeverity":"MEDIUM","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","integrityImpact":"LOW","userInteraction":"REQUIRED","attackComplexity":"LOW","availabilityImpact":"NONE","privilegesRequired":"NONE","confidentialityImpact":"LOW"}},{"other":{"type":"ssvc","content":{"timestamp":"2024-03-13T18:55:05.958271Z","id":"CVE-2024-22048","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-79","type":"CWE","lang":"en","description":"CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-06-04T21:13:59.263Z"}}]}}}