Skip to content

Reject unsafe oEmbed endpoint URLs - #93

Merged
dereuromark merged 1 commit into
nextfrom
feature/harden-oembed-endpoints
Jun 28, 2026
Merged

dereuromark merged 1 commit into
nextfrom
feature/harden-oembed-endpoints

Conversation

@dereuromark

Copy link
Copy Markdown
Owner

Rejects unsafe oEmbed endpoint URLs before fetching.

Only public http and https endpoints are accepted. Unsafe schemes, missing hosts, localhost, and private/reserved IP endpoints are rejected for both discovered and direct fetch URLs. Docs now also call out that oEmbed HTML is raw remote provider HTML.

Local checks: composer cs-fix && composer cs-check && composer stan && composer test

@dereuromark
dereuromark marked this pull request as ready for review June 28, 2026 12:14
@dereuromark
dereuromark merged commit f2a1b98 into next Jun 28, 2026
8 checks passed
@dereuromark
dereuromark deleted the feature/harden-oembed-endpoints branch June 28, 2026 12:14
dereuromark added a commit that referenced this pull request Jun 28, 2026
* Fix embed source template resolution (#91)

* Validate iframe attribute names (#92)

* Reject unsafe oEmbed endpoint URLs (#93)

* Harden default stream HTTP client (#95)

* Tighten URL matcher provider fallback

* Finalize master hardening backport
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant