{"id":"CVE-2018-10102","published":"2018-04-14T13:00:00Z","modified":"2024-08-05T07:32:01Z","title":"Before WordPress 4.9.5, the version string was not escaped in the get_the_generator function, and could lead to XSS in…","vendor":null,"product":null,"tier":"tail","description":{"text":"Before WordPress 4.9.5, the version string was not escaped in the get_the_generator function, and could lead to XSS in a generator tag.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.04253,"percentile":0.91283,"provenance":"source"},"cwes":[],"references":[{"url":"http://www.securityfocus.com/bid/103775","tags":["vdb-entry","x_refsource_BID"]},{"url":"https://wpvulndb.com/vulnerabilities/9055","tags":["x_refsource_MISC"]},{"url":"http://www.securitytracker.com/id/1040836","tags":["vdb-entry","x_refsource_SECTRACK"]},{"url":"https://www.debian.org/security/2018/dsa-4193","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"https://core.trac.wordpress.org/changeset/42893","tags":["x_refsource_CONFIRM"]},{"url":"https://wordpress.org/news/2018/04/wordpress-4-9-5-security-and-maintenance-release/","tags":["x_refsource_CONFIRM"]},{"url":"https://lists.debian.org/debian-lts-announce/2018/04/msg00031.html","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://codex.wordpress.org/Version_4.9.5","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/WordPress/WordPress/commit/31a4369366d6b8ce30045d4c838de2412c77850d","tags":["x_refsource_CONFIRM"]}],"priority":{"score":18.3,"factors":[{"name":"EPSS percentile","points":18.26}]},"summary":{"text":"The flaw is in WordPress, specifically in its get_the_generator function, which failed to escape the version string before it was output, affecting releases prior to 4.9.5. The unescaped value is written into a generator tag, which is where the weakness lives. An attacker could use this to inject script through the version string, leading to cross-site scripting in the generator tag.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:20:12Z"},"euvd":{"id":"EUVD-2018-2181","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-cve-2017-17093-family-cve-2017-17093","parents":[{"from":"CVE-2017-17093","to":"CVE-2018-10102","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["wp-includes/general-template.php"],"commits":["https://github.com/WordPress/WordPress/commit/3713ac5ebc90fb2011e98dfd691420f43da6c09a","https://github.com/WordPress/WordPress/commit/31a4369366d6b8ce30045d4c838de2412c77850d"],"basis":"rarely changed file"}]}]}}