Skip to content

Commit 5192a21

Browse files
add changesets
1 parent cdea765 commit 5192a21

2 files changed

Lines changed: 19 additions & 0 deletions

File tree

.changeset/breezy-tools-lose.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"@cloudflare/workers-playground": patch
3+
---
4+
5+
The workers playground's VSCodeEditor's `postMessage` `targetOrigin` is updated from `'\*'` to the specific `quickEditHost`.
6+
7+
This prevents the workers-playground from accidentally posting to an incorrect iframe.

.changeset/tough-states-sip.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
"@cloudflare/quick-edit": patch
3+
---
4+
5+
Add frame-ancestors CSP and postMessage origin validation to quick-edit
6+
7+
Mitigate `postMessage` origin bypass:
8+
9+
- Add Content-Security-Policy frame-ancestors header to quick-edit Worker responses, restricting which origins can embed the editor iframe
10+
- Add client-side origin validation to the window.onmessage handler in workbench.ts, rejecting PORT messages from untrusted origins
11+
- Inject allowed parent origins from server into HTML for client-side use
12+
- Localhost origins are conditionally included when running via wrangler dev

0 commit comments

Comments
 (0)