{"id":"CVE-2013-4940","aliases":["EUVD-2013-4784","GHSA-x5hj-47vv-53p8"],"status":"published","title":"YUI Cross-site Scripting (XSS) vulnerability","description":"Cross-site scripting (XSS) vulnerability in io.swf in the IO Utility component in Yahoo! YUI 3.10.2, as used in Moodle through 2.1.10, 2.2.x before 2.2.11, 2.3.x before 2.3.8, 2.4.x before 2.4.5, 2.5.x before 2.5.1, and other products, allows remote attackers to inject arbitrary web script or HTML via a crafted string in a URL.  NOTE: this vulnerability exists because of a CVE-2013-4939 regression.","severity":{"version":"2.0","score":4.3,"vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-09","score":0.01492,"percentile":0.74311,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-79"],"published":"2013-07-26T22:00:00Z","modified":"2026-06-16T23:58:07Z","fixes":[{"ecosystem":"npm","package":"yui","fixed_in":["3.10.11","3.10.13"],"sources":["ghsa","osv"]},{"ecosystem":"Packagist","package":"moodle/moodle","fixed_in":["2.2.11","2.3.8","2.4.5","2.5.1"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"yui","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.0.0"},{"last_affected":"3.10.0"},{"fixed":"3.10.11"}]}]},{"source":"ghsa","ecosystem":"npm","package":"yui","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.10.12"},{"last_affected":"3.10.12"},{"fixed":"3.10.13"}]}],"versions":["3.10.12"]},{"source":"ghsa","ecosystem":"Packagist","package":"moodle/moodle","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2.11"}]}]},{"source":"ghsa","ecosystem":"Packagist","package":"moodle/moodle","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.3.0"},{"fixed":"2.3.8"}]}]},{"source":"ghsa","ecosystem":"Packagist","package":"moodle/moodle","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.4.0-rc1"},{"fixed":"2.4.5"}]}]},{"source":"ghsa","ecosystem":"Packagist","package":"moodle/moodle","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.5.0-beta"},{"fixed":"2.5.1"}]}]},{"source":"osv","ecosystem":"npm","package":"yui","ranges":[{"type":"SEMVER","events":[{"introduced":"3.0.0"},{"fixed":"3.10.11"}]}]},{"source":"osv","ecosystem":"npm","package":"yui","ranges":[{"type":"SEMVER","events":[{"introduced":"3.10.12"},{"fixed":"3.10.13"}]}],"versions":["3.10.12"]},{"source":"osv","ecosystem":"Packagist","package":"moodle/moodle","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2.11"}]}]},{"source":"osv","ecosystem":"Packagist","package":"moodle/moodle","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.3.0"},{"fixed":"2.3.8"}]}],"versions":["v2.3.4","v2.3.5","v2.3.6","v2.3.7"]},{"source":"osv","ecosystem":"Packagist","package":"moodle/moodle","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.4.0-rc1"},{"fixed":"2.4.5"}]}],"versions":["v2.4.0","v2.4.0-rc1","v2.4.1","v2.4.2","v2.4.3","v2.4.4"]},{"source":"osv","ecosystem":"Packagist","package":"moodle/moodle","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.5.0-beta"},{"fixed":"2.5.1"}]}],"versions":["v2.5.0","v2.5.0-beta","v2.5.0-rc1"]}],"products":[{"vendor":"moodle","product":"moodle"},{"vendor":"yahoo","product":"yui"}],"references":[{"url":"https://moodle.org/mod/forum/discuss.php?d=232496","tags":["x_refsource_CONFIRM","x_transferred","Vendor Advisory","web"]},{"url":"http://git.moodle.org/gw?p=moodle.git\u0026a=search\u0026h=HEAD\u0026st=commit\u0026s=MDL-39678","tags":["x_refsource_CONFIRM","x_transferred","web"]},{"url":"http://yuilibrary.com/support/20130515-vulnerability/","tags":["x_refsource_CONFIRM","x_transferred","Patch","Vendor Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2013-4940","tags":["advisory"]},{"url":"https://web.archive.org/web/20130909203912/http://yuilibrary.com/support/20130515-vulnerability","tags":["web"]},{"url":"https://github.com/advisories/GHSA-x5hj-47vv-53p8"}],"sources":{"cve":[{"id":"CVE-2013-4940","description":"Cross-site scripting (XSS) vulnerability in io.swf in the IO Utility component in Yahoo! YUI 3.10.2, as used in Moodle through 2.1.10, 2.2.x before 2.2.11, 2.3.x before 2.3.8, 2.4.x before 2.4.5, 2.5.x before 2.5.1, and other products, allows remote attackers to inject arbitrary web script or HTML via a crafted string in a URL.  NOTE: this vulnerability exists because of a CVE-2013-4939 regression.","status":"published","published":"2013-07-26T22:00:00Z","modified":"2024-09-17T02:06:31.907Z","updated_at":"2026-11-02T14:34:58.193873Z"}],"euvd":[{"id":"EUVD-2013-4784","description":"Cross-site scripting (XSS) vulnerability in io.swf in the IO Utility component in Yahoo! YUI 3.10.2, as used in Moodle through 2.1.10, 2.2.x before 2.2.11, 2.3.x before 2.3.8, 2.4.x before 2.4.5, 2.5.x before 2.5.1, and other products, allows remote attackers to inject arbitrary web script or HTML via a crafted string in a URL.  NOTE: this vulnerability exists because of a CVE-2013-4939 regression.","status":"published","published":"2013-07-26T22:00:00Z","modified":"2024-09-17T02:06:31Z","updated_at":"2026-11-03T00:28:43.867146Z"}],"ghsa":[{"id":"GHSA-x5hj-47vv-53p8","title":"YUI Cross-site Scripting (XSS) vulnerability","description":"Cross-site scripting (XSS) vulnerability in io.swf in the IO Utility component in Yahoo! YUI 3.10.2, as used in Moodle through 2.1.10, 2.2.x before 2.2.11, 2.3.x before 2.3.8, 2.4.x before 2.4.5, 2.5.x before 2.5.1, and other products, allows remote attackers to inject arbitrary web script or HTML via a crafted string in a URL.  NOTE: this vulnerability exists because of a CVE-2013-4939 regression.","status":"published","published":"2022-05-13T01:12:54Z","modified":"2025-04-12T03:24:29Z","cvss":[{"version":"4.0","score":5.3,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N","level":"medium"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:38:39.044439Z"}],"nvd":[{"id":"CVE-2013-4940","description":"Cross-site scripting (XSS) vulnerability in io.swf in the IO Utility component in Yahoo! YUI 3.10.2, as used in Moodle through 2.1.10, 2.2.x before 2.2.11, 2.3.x before 2.3.8, 2.4.x before 2.4.5, 2.5.x before 2.5.1, and other products, allows remote attackers to inject arbitrary web script or HTML via a crafted string in a URL.  NOTE: this vulnerability exists because of a CVE-2013-4939 regression.","status":"published","published":"2013-07-29T13:59:20.9Z","modified":"2026-06-16T23:58:07.86Z","cvss":[{"version":"2.0","score":4.3,"vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:02:31.592595Z"}],"osv":[{"id":"GHSA-x5hj-47vv-53p8","title":"YUI Cross-site Scripting (XSS) vulnerability","description":"Cross-site scripting (XSS) vulnerability in io.swf in the IO Utility component in Yahoo! YUI 3.10.2, as used in Moodle through 2.1.10, 2.2.x before 2.2.11, 2.3.x before 2.3.8, 2.4.x before 2.4.5, 2.5.x before 2.5.1, and other products, allows remote attackers to inject arbitrary web script or HTML via a crafted string in a URL.  NOTE: this vulnerability exists because of a CVE-2013-4939 regression.","status":"published","published":"2022-05-13T01:12:54Z","modified":"2025-04-12T04:12:08.536769Z","cvss":[{"version":"4.0","score":5.3,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N","level":"medium"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T15:46:59.484835Z"}]}}
