{"url":"http://public2.vulnerablecode.io/api/packages/939482?format=json","purl":"pkg:npm/opencode-ai@0.0.0-opentui-202510241633","type":"npm","namespace":"","name":"opencode-ai","version":"0.0.0-opentui-202510241633","qualifiers":{},"subpath":"","is_vulnerable":true,"next_non_vulnerable_version":"1.1.10","latest_non_vulnerable_version":"1.1.10","affected_by_vulnerabilities":[{"url":"http://public2.vulnerablecode.io/api/vulnerabilities/49675?format=json","vulnerability_id":"VCID-hzxt-kugv-73fy","summary":"Malicious website can execute commands on the local system through XSS in the OpenCode web UI\nA malicious website can abuse the server URL override feature of the OpenCode web UI to achieve cross-site scripting on `http://localhost:4096`. From there, it is possible to run arbitrary commands on the local system using the `/pty/` endpoints provided by the OpenCode API.","references":[{"reference_url":"https://api.first.org/data/v1/epss?cve=CVE-2026-22813","reference_id":"","reference_type":"","scores":[{"value":"0.00043","scoring_system":"epss","scoring_elements":"0.13751","published_at":"2026-06-06T12:55:00Z"},{"value":"0.00043","scoring_system":"epss","scoring_elements":"0.13659","published_at":"2026-06-09T12:55:00Z"},{"value":"0.00043","scoring_system":"epss","scoring_elements":"0.13626","published_at":"2026-06-08T12:55:00Z"},{"value":"0.00043","scoring_system":"epss","scoring_elements":"0.13712","published_at":"2026-06-07T12:55:00Z"},{"value":"0.00043","scoring_system":"epss","scoring_elements":"0.13748","published_at":"2026-06-05T12:55:00Z"}],"url":"https://api.first.org/data/v1/epss?cve=CVE-2026-22813"},{"reference_url":"https://github.com/anomalyco/opencode","reference_id":"","reference_type":"","scores":[{"value":"9.4","scoring_system":"cvssv4","scoring_elements":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H"},{"value":"CRITICAL","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/anomalyco/opencode"},{"reference_url":"https://nvd.nist.gov/vuln/detail/CVE-2026-22813","reference_id":"CVE-2026-22813","reference_type":"","scores":[{"value":"9.4","scoring_system":"cvssv4","scoring_elements":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H"},{"value":"CRITICAL","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-22813"},{"reference_url":"https://github.com/advisories/GHSA-c83v-7274-4vgp","reference_id":"GHSA-c83v-7274-4vgp","reference_type":"","scores":[{"value":"CRITICAL","scoring_system":"cvssv3.1_qr","scoring_elements":""}],"url":"https://github.com/advisories/GHSA-c83v-7274-4vgp"},{"reference_url":"https://github.com/anomalyco/opencode/security/advisories/GHSA-c83v-7274-4vgp","reference_id":"GHSA-c83v-7274-4vgp","reference_type":"","scores":[{"value":"CRITICAL","scoring_system":"cvssv3.1_qr","scoring_elements":""},{"value":"9.4","scoring_system":"cvssv4","scoring_elements":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H"},{"value":"CRITICAL","scoring_system":"generic_textual","scoring_elements":""},{"value":"Track*","scoring_system":"ssvc","scoring_elements":"SSVCv2/E:P/A:Y/T:T/P:M/B:A/M:M/D:R/2026-01-13T14:13:29Z/"}],"url":"https://github.com/anomalyco/opencode/security/advisories/GHSA-c83v-7274-4vgp"}],"fixed_packages":[{"url":"http://public2.vulnerablecode.io/api/packages/73338?format=json","purl":"pkg:npm/opencode-ai@1.1.10","is_vulnerable":false,"affected_by_vulnerabilities":[],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:npm/opencode-ai@1.1.10"}],"aliases":["CVE-2026-22813","GHSA-c83v-7274-4vgp"],"risk_score":4.5,"exploitability":"0.5","weighted_severity":"9.0","resource_url":"http://public2.vulnerablecode.io/vulnerabilities/VCID-hzxt-kugv-73fy"},{"url":"http://public2.vulnerablecode.io/api/vulnerabilities/49696?format=json","vulnerability_id":"VCID-n2xt-r2vu-dkha","summary":"OpenCode's Unauthenticated HTTP Server Allows Arbitrary Command Execution\nOpenCode automatically starts an unauthenticated HTTP server that allows any local process—or any website via permissive CORS—to execute arbitrary shell commands with the user's privileges.","references":[{"reference_url":"https://api.first.org/data/v1/epss?cve=CVE-2026-22812","reference_id":"","reference_type":"","scores":[{"value":"0.05324","scoring_system":"epss","scoring_elements":"0.90229","published_at":"2026-06-06T12:55:00Z"},{"value":"0.05324","scoring_system":"epss","scoring_elements":"0.90242","published_at":"2026-06-09T12:55:00Z"},{"value":"0.05324","scoring_system":"epss","scoring_elements":"0.90226","published_at":"2026-06-08T12:55:00Z"},{"value":"0.05324","scoring_system":"epss","scoring_elements":"0.90227","published_at":"2026-06-07T12:55:00Z"},{"value":"0.05324","scoring_system":"epss","scoring_elements":"0.9023","published_at":"2026-06-05T12:55:00Z"}],"url":"https://api.first.org/data/v1/epss?cve=CVE-2026-22812"},{"reference_url":"https://github.com/anomalyco/opencode","reference_id":"","reference_type":"","scores":[{"value":"8.8","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/anomalyco/opencode"},{"reference_url":"https://github.com/anomalyco/opencode/commit/7d2d87fa2c44e32314015980bb4e59a9386e858c","reference_id":"","reference_type":"","scores":[{"value":"8.8","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/anomalyco/opencode/commit/7d2d87fa2c44e32314015980bb4e59a9386e858c"},{"reference_url":"https://nvd.nist.gov/vuln/detail/CVE-2026-22812","reference_id":"CVE-2026-22812","reference_type":"","scores":[{"value":"8.8","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-22812"},{"reference_url":"https://github.com/advisories/GHSA-vxw4-wv6m-9hhh","reference_id":"GHSA-vxw4-wv6m-9hhh","reference_type":"","scores":[{"value":"HIGH","scoring_system":"cvssv3.1_qr","scoring_elements":""}],"url":"https://github.com/advisories/GHSA-vxw4-wv6m-9hhh"},{"reference_url":"https://github.com/anomalyco/opencode/security/advisories/GHSA-vxw4-wv6m-9hhh","reference_id":"GHSA-vxw4-wv6m-9hhh","reference_type":"","scores":[{"value":"8.8","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},{"value":"HIGH","scoring_system":"cvssv3.1_qr","scoring_elements":""},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""},{"value":"Track*","scoring_system":"ssvc","scoring_elements":"SSVCv2/E:P/A:N/T:T/P:M/B:A/M:M/D:R/2026-01-13T14:13:37Z/"}],"url":"https://github.com/anomalyco/opencode/security/advisories/GHSA-vxw4-wv6m-9hhh"}],"fixed_packages":[{"url":"http://public2.vulnerablecode.io/api/packages/73378?format=json","purl":"pkg:npm/opencode-ai@1.0.216","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-hzxt-kugv-73fy"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:npm/opencode-ai@1.0.216"}],"aliases":["CVE-2026-22812","GHSA-vxw4-wv6m-9hhh"],"risk_score":4.0,"exploitability":"0.5","weighted_severity":"8.0","resource_url":"http://public2.vulnerablecode.io/vulnerabilities/VCID-n2xt-r2vu-dkha"}],"fixing_vulnerabilities":[],"risk_score":"4.5","resource_url":"http://public2.vulnerablecode.io/packages/pkg:npm/opencode-ai@0.0.0-opentui-202510241633"}