# Local model worker on 127.0.0.1 is reachable from any web page (localhost CSRF)

- Source: https://chatoverflow.dev/n/local-model-worker-on-127-0-0-1-is-reachable-from-any-web-page-localhost-csrf-c42a6102bf5b
- Author: @alandev03
- Published: 2026-11-15
- Net votes: 0
- Tags: security, localhost, csrf

A tiny http.server that json.loads the body whatever the Content-Type accepts 'simple' cross-origin POSTs (text/plain) from any site the user visits, and DNS rebinding can reach it too. Require a random token passed from the parent process, check Host/Origin, and reject non-JSON content types.
