Skip to main content

cloudflare-durable-objects

Builds stateful Durable Objects for real-time applications, enhancing WebSocket servers and persistent state management.

Install this skill

or
0/100

Security score

The cloudflare-durable-objects skill was audited on Feb 9, 2026 and we found 40 security issues across 3 threat categories, including 1 critical. Review the findings below before installing.

Categories Tested

Security Issues

high line 135

Direct command execution function call

SourceSKILL.md
135this.sql.exec(`
high line 143

Direct command execution function call

SourceSKILL.md
143const cursor = this.sql.exec('INSERT INTO messages (text, created_at) VALUES (?, ?) RETURNING id', text, Date.now());
high line 148

Direct command execution function call

SourceSKILL.md
148return this.sql.exec('SELECT * FROM messages ORDER BY created_at DESC LIMIT ?', limit).toArray();
critical line 154

Direct command execution function call

SourceSKILL.md
154- `sql.exec(query, ...params)` → cursor
high line 452

Direct command execution function call

SourceSKILL.md
452this.sql.exec('INSERT OR REPLACE INTO session (key, value, expires_at) VALUES (?, ?, ?)',
high line 457

Direct command execution function call

SourceSKILL.md
457this.sql.exec('DELETE FROM session WHERE expires_at < ?', Date.now());
high line 466

Direct command execution function call

SourceSKILL.md
466this.sql.exec('INSERT INTO leader (id, worker_id, elected_at) VALUES (1, ?, ?)', workerId, Date.now());
high line 521

Direct command execution function call

SourceSKILL.md
521this.sql.exec('SELECT * FROM table WHERE id = ?', id);
high line 748

Direct command execution function call

SourceSKILL.md
748this.sql.exec('INSERT INTO test (bool_col) VALUES (?)', value ? 1 : 0);
high line 751

Direct command execution function call

SourceSKILL.md
751this.sql.exec(`
medium line 69

Template literal with variable interpolation in command context

SourceSKILL.md
69return new Response(`Count: ${await stub.increment()}`);
medium line 439

Template literal with variable interpolation in command context

SourceSKILL.md
439const requests = (await this.ctx.storage.get<number[]>(`rate:${userId}`)) || [];
medium line 443

Template literal with variable interpolation in command context

SourceSKILL.md
443await this.ctx.storage.put(`rate:${userId}`, valid);
medium line 477

Template literal with variable interpolation in command context

SourceSKILL.md
477await this.ctx.storage.put(`game:${gameId}`, { created: Date.now() });
low line 349

Fetch to external URL

SourceSKILL.md
349const response = await stub.fetch('https://fake-host/increment', { method: 'POST' });
low line 14

External URL reference

SourceSKILL.md
14**Official Docs**: https://developers.cloudflare.com/durable-objects/
low line 349

External URL reference

SourceSKILL.md
349const response = await stub.fetch('https://fake-host/increment', { method: 'POST' });
low line 588

External URL reference

SourceSKILL.md
588**Source**: https://developers.cloudflare.com/durable-objects/get-started/
low line 598

External URL reference

SourceSKILL.md
598**Source**: https://developers.cloudflare.com/durable-objects/reference/durable-objects-migrations/
low line 611

External URL reference

SourceSKILL.md
611**Source**: https://developers.cloudflare.com/durable-objects/api/sqlite-storage-api/
low line 617

External URL reference

SourceSKILL.md
617**Source**: https://developers.cloudflare.com/durable-objects/best-practices/access-durable-objects-storage/
low line 631

External URL reference

SourceSKILL.md
631**Source**: https://developers.cloudflare.com/durable-objects/concepts/durable-object-lifecycle/
low line 644

External URL reference

SourceSKILL.md
644**Source**: https://developers.cloudflare.com/durable-objects/best-practices/websockets/
low line 659

External URL reference

SourceSKILL.md
659**Source**: [Cloudflare Docs](https://developers.cloudflare.com/durable-objects/best-practices/websockets/) | [GitHub Issue #4864](https://github.com/cloudflare/workerd/issues/4864)
low line 670

External URL reference

SourceSKILL.md
670**Source**: https://developers.cloudflare.com/durable-objects/platform/known-issues/#global-uniqueness
low line 676

External URL reference

SourceSKILL.md
676**Source**: [KV Storage API](https://developers.cloudflare.com/durable-objects/api/legacy-kv-storage-api/) | [GitHub Issue #2993](https://github.com/cloudflare/workerd/issues/2993)
low line 692

External URL reference

SourceSKILL.md
692**Source**: https://developers.cloudflare.com/durable-objects/get-started/
low line 704

External URL reference

SourceSKILL.md
704**Source**: https://developers.cloudflare.com/durable-objects/platform/pricing/
low line 710

External URL reference

SourceSKILL.md
710**Source**: https://developers.cloudflare.com/workers/configuration/versions-and-deployments/gradual-deployments/
low line 716

External URL reference

SourceSKILL.md
716**Source**: https://developers.cloudflare.com/durable-objects/reference/data-location/
low line 722

External URL reference

SourceSKILL.md
722**Source**: https://developers.cloudflare.com/durable-objects/api/alarms/
low line 737

External URL reference

SourceSKILL.md
737**Source**: https://developers.cloudflare.com/durable-objects/concepts/durable-object-lifecycle/
low line 819

External URL reference

SourceSKILL.md
819- **Durable Objects**: https://developers.cloudflare.com/durable-objects/
low line 820

External URL reference

SourceSKILL.md
820- **State API (SQL)**: https://developers.cloudflare.com/durable-objects/api/sqlite-storage-api/
low line 821

External URL reference

SourceSKILL.md
821- **WebSocket Hibernation**: https://developers.cloudflare.com/durable-objects/best-practices/websockets/
low line 822

External URL reference

SourceSKILL.md
822- **Alarms API**: https://developers.cloudflare.com/durable-objects/api/alarms/
low line 823

External URL reference

SourceSKILL.md
823- **Migrations**: https://developers.cloudflare.com/durable-objects/reference/durable-objects-migrations/
low line 824

External URL reference

SourceSKILL.md
824- **Best Practices**: https://developers.cloudflare.com/durable-objects/best-practices/
low line 825

External URL reference

SourceSKILL.md
825- **Pricing**: https://developers.cloudflare.com/durable-objects/platform/pricing/
low line 833

External URL reference

SourceSKILL.md
8333. Consult official docs: https://developers.cloudflare.com/durable-objects/
Scanned on Feb 9, 2026
View Security Dashboard
Installation guide →