Skip to content

fix(security): validate firecrawl_extract URLs with z.string().url()#217

Open
beejak wants to merge 1 commit intofirecrawl:mainfrom
beejak:fix/extract-urls-zod-url-validation
Open

fix(security): validate firecrawl_extract URLs with z.string().url()#217
beejak wants to merge 1 commit intofirecrawl:mainfrom
beejak:fix/extract-urls-zod-url-validation

Conversation

@beejak
Copy link
Copy Markdown

@beejak beejak commented Apr 22, 2026

Summary

Require each entry in \ irecrawl_extract'\urls\ to satisfy \z.string().url(), matching other tools that accept HTTP(S) URLs.

Why

\ irecrawl_crawl\ URL validation is being tightened elsewhere (e.g. #210). \extract\ still accepted arbitrary strings in \urls, which could confuse callers or weaken defense-in-depth.

Test plan


  • pm install --ignore-scripts && npx tsc --noEmit\

Align extract tool URL inputs with scrape/map/search. Complements crawl URL validation (e.g. firecrawl#210 / FIRECRAWL-001) by rejecting non-URL strings in the urls array.

Made-with: Cursor
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