Skip to content

fix: check hostname of upload url - #13018

Merged
denolfe merged 2 commits into
mainfrom
fix/safe-fetch
Jul 3, 2025
Merged

denolfe merged 2 commits into
mainfrom
fix/safe-fetch

Conversation

@kendelljoseph

@kendelljoseph kendelljoseph commented Jul 2, 2025 •

Copy link
Copy Markdown
Contributor

Adds:

import { lookup } from 'dns/promises'
// ...
const { address } = await lookup(hostname)
// ...
return isSafeIp(address)

To ensure that an ip address is being verified. Previously, hostnames were being verified by isSafeIp.

Fixes: #12876

@denolfe denolfe changed the title fix: checks hostnames fix: check hostname of upload url Jul 3, 2025
@denolfe
denolfe merged commit 30fc7e3 into main Jul 3, 2025
@denolfe
denolfe deleted the fix/safe-fetch branch July 3, 2025 14:50
@github-actions

github-actions Bot commented Jul 7, 2025

Copy link
Copy Markdown
Contributor

🚀 This is included in version v3.46.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

storage-s3: Changing uploaded Media fails with "Blocked unsafe attempt" in v3.43.0

2 participants