{"url":"http://public2.vulnerablecode.io/api/vulnerabilities/4?format=json","vulnerability_id":"VCID-bcen-e3gn-zuhc","summary":"XSS is possible via the use of the order query parameter. An example request\nwould look like:\n\n```\nhttp://host/ressources?order=%27><script>alert(1);</script>\n```","aliases":[{"alias":"CVE-2018-20302"},{"alias":"GHSA-5chx-gg25-v37m"}],"fixed_packages":[{"url":"http://public2.vulnerablecode.io/api/packages/383825?format=json","purl":"pkg:hex/xain@0.6.2","is_vulnerable":false,"affected_by_vulnerabilities":[],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:hex/xain@0.6.2"}],"affected_packages":[{"url":"http://public2.vulnerablecode.io/api/packages/122?format=json","purl":"pkg:hex/xain@0.5.2","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-bcen-e3gn-zuhc"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:hex/xain@0.5.2"},{"url":"http://public2.vulnerablecode.io/api/packages/123?format=json","purl":"pkg:hex/xain@0.5.3","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-bcen-e3gn-zuhc"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:hex/xain@0.5.3"},{"url":"http://public2.vulnerablecode.io/api/packages/124?format=json","purl":"pkg:hex/xain@0.6.0","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-bcen-e3gn-zuhc"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:hex/xain@0.6.0"},{"url":"http://public2.vulnerablecode.io/api/packages/125?format=json","purl":"pkg:hex/xain@0.6.1","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-bcen-e3gn-zuhc"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:hex/xain@0.6.1"}],"references":[{"reference_url":"https://api.first.org/data/v1/epss?cve=CVE-2018-20302","reference_id":"","reference_type":"","scores":[{"value":"0.00223","scoring_system":"epss","scoring_elements":"0.45124","published_at":"2026-06-11T12:55:00Z"},{"value":"0.00223","scoring_system":"epss","scoring_elements":"0.45273","published_at":"2026-06-12T12:55:00Z"},{"value":"0.00223","scoring_system":"epss","scoring_elements":"0.45286","published_at":"2026-06-13T12:55:00Z"},{"value":"0.00223","scoring_system":"epss","scoring_elements":"0.45274","published_at":"2026-06-14T12:55:00Z"}],"url":"https://api.first.org/data/v1/epss?cve=CVE-2018-20302"},{"reference_url":"https://github.com/dependabot/elixir-security-advisories/blob/master/packages/xain/2018-09-03.yml","reference_id":"","reference_type":"","scores":[{"value":"6.1","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"},{"value":"MODERATE","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/dependabot/elixir-security-advisories/blob/master/packages/xain/2018-09-03.yml"},{"reference_url":"https://github.com/smpallen99/xain","reference_id":"","reference_type":"","scores":[{"value":"6.1","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"},{"value":"MODERATE","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/smpallen99/xain"},{"reference_url":"https://github.com/smpallen99/xain/issues/18","reference_id":"","reference_type":"","scores":[{"value":"6.1","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"},{"value":"MODERATE","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/smpallen99/xain/issues/18"},{"reference_url":"https://nvd.nist.gov/vuln/detail/CVE-2018-20302","reference_id":"","reference_type":"","scores":[{"value":"6.1","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"},{"value":"MODERATE","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-20302"}],"weaknesses":[{"cwe_id":79,"name":"Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","description":"The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users."}],"exploits":[],"severity_range_score":"4.0 - 6.9","exploitability":"0.5","weighted_severity":"6.2","risk_score":3.1,"resource_url":"http://public2.vulnerablecode.io/vulnerabilities/VCID-bcen-e3gn-zuhc"}