{"id":"CVE-2017-11173","published":"2017-07-13T03:00:00Z","modified":"2024-08-05T17:57:58Z","title":"Missing anchor in generated regex for rack-cors before 0.4.1 allows a malicious third-party site to perform CORS…","vendor":null,"product":null,"tier":"tail","description":{"text":"Missing anchor in generated regex for rack-cors before 0.4.1 allows a malicious third-party site to perform CORS requests. If the configuration were intended to allow only the trusted example.com domain name and not the malicious example.net domain name, then example.com.example.net (as well as example.com-example.net) would be inadvertently allowed.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.02345,"percentile":0.84052,"provenance":"source"},"cwes":[],"references":[{"url":"http://seclists.org/fulldisclosure/2017/Jul/22","tags":["x_refsource_MISC"]},{"url":"https://packetstormsecurity.com/files/143345/rack-cors-Missing-Anchor.html","tags":["x_refsource_MISC"]},{"url":"https://github.com/cyu/rack-cors/commit/42ebe6caa8e85ffa9c8a171bda668ba1acc7a5e6","tags":["x_refsource_MISC"]},{"url":"http://www.debian.org/security/2017/dsa-3931","tags":["vendor-advisory","x_refsource_DEBIAN"]}],"priority":{"score":21.8,"factors":[{"name":"EPSS percentile","points":16.81},{"name":"Public exploit code","points":5.0}]},"affected":[{"ecosystem":"RubyGems","package":"rack-cors","vulnerableRanges":["<0.4.1"],"patched":["0.4.1"],"from":["GHSA-2j9c-9vmv-7m39"],"provenance":"source"}],"summary":{"text":"The flaw is a missing anchor in a regular expression generated by rack-cors in versions before 0.4.1, which affects how the component matches allowed origins. An attacker controlling a third-party site can make cross-origin requests that the configuration was meant to block, such as a lookalike domain like example.com.example.net or example.com-example.net when only example.com was trusted.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:16:19Z"},"euvd":{"id":"EUVD-2018-0207","exploited":false,"provenance":"source"},"exploitRefs":["https://packetstormsecurity.com/files/143345/rack-cors-Missing-Anchor.html"],"lineage":{"familyId":"fam-rack-cors-cve-2017-11173","children":[{"from":"CVE-2017-11173","to":"CVE-2019-18978","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["lib/rack/cors.rb"],"commits":["https://github.com/cyu/rack-cors/commit/42ebe6caa8e85ffa9c8a171bda668ba1acc7a5e6","https://github.com/cyu/rack-cors/commit/e4d4fc362a4315808927011cbe5afcfe5486f17d"],"basis":"rarely changed file"}]}]}}