# opencode-ai (npm) vulnerabilities

2 known vulnerabilities (1 critical, 1 high), with the versions each affects and the releases that fix them.

## At a glance

- Latest release: 1.19.5 (Oct 28, 2026): no advisory affects it
- Newest unaffected release: 1.19.5 (Oct 28, 2026), the latest release
- Weekly downloads: 5M
- Dependents: 83
- Releases: 500+ since 1.18.15 (Aug 7, 2026)
- Registry: https://www.npmjs.com/package/opencode-ai
- Releases read: Nov 8, 2026

## Version timeline

Affected versions per advisory, in version order:

- CVE-2026-22813: 0.0.0-beta-202608060317 to 0.0.0-dev-202611080442 (1.18.15 is outside it)
- CVE-2026-22812: 0.0.0-beta-202608060317 to 0.0.0-dev-202611080442 (1.18.15 is outside it)

Older releases aren't stored, so the earliest spans may start sooner.

## Advisories (2)

### [CVE-2026-22813](https://cve.now/CVE-2026-22813): Malicious website can execute commands on the local system through XSS in the OpenCode web UI

- Severity: Critical 9.4
- Published: Jan 12, 2026
- Affected: fixed in 1.1.10.
- Fixed in 1.18.15 (released Aug 7, 2026, 207 days after disclosure, the advisory names 1.1.10, which was never published).
- The latest release, 1.19.5, is not affected.
- 0.9% of opencode-ai downloads last week were affected versions (31K).

### [CVE-2026-22812](https://cve.now/CVE-2026-22812): OpenCode's Unauthenticated HTTP Server Allows Arbitrary Command Execution

- Severity: High 8.8
- Published: Jan 12, 2026
- Affected: fixed in 1.0.216.
- Fixed in 1.18.15 (released Aug 7, 2026, 207 days after disclosure, the advisory names 1.0.216, which was never published).
- The latest release, 1.19.5, is not affected.
- 0.9% of opencode-ai downloads last week were affected versions (30.8K).

---

Source: cve.now
Built by [Sazabi](https://www.sazabi.com/?utm_source=cve-now&utm_medium=markdown), AI-native observability and security: automatic issue detection, plain-language log search and live dashboards.
Page: https://cve.now/packages/npm/opencode-ai
Site guide for agents: https://cve.now/llms.txt
Uses NVD data; not endorsed by NVD.
