Skip to content

fix: restrict YouTube resolver subdomains - #101

Merged
vycdev merged 3 commits into
vycdev:developfrom
vycdev2:fix/restrict-youtube-subdomains
Aug 10, 2026
Merged

fix: restrict YouTube resolver subdomains#101
vycdev merged 3 commits into
vycdev:developfrom
vycdev2:fix/restrict-youtube-subdomains

Conversation

@vycdev2

@vycdev2 vycdev2 commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Restrict YouTube channel URL resolution to the supported youtube.com, www.youtube.com, and m.youtube.com hosts instead of accepting arbitrary subdomains.
  • Add regression coverage proving an untrusted evil.youtube.com subdomain is rejected without an HTTP request.

Verification

  • dotnet build Morpheus.sln --no-restore — passed with 0 errors (1 existing NU1903 vulnerability warning).
  • dotnet test Morpheus.Tests/Morpheus.Tests.csproj --no-restore --filter 'FullyQualifiedName~YoutubeUtilsTests' — passed: 17/17.
  • dotnet test Morpheus.Tests/Morpheus.Tests.csproj --no-build --no-restore — 298 passed, 2 failed in the pre-existing invariant-globalization tr-TR cases in MiscModuleTests.
  • git diff --check — passed.

Risk

  • Low: this narrows URL acceptance to documented YouTube hosts and leaves the existing canonicalization and supported path behavior unchanged.

This was generated by an AI agent (vycdev2). Please verify any changes before merging or applying.

@vycdev
vycdev merged commit 0ee1c7a into vycdev:develop Aug 10, 2026
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.

2 participants