Repository navigation
fix(prerender): only refuse .. as a whole path segment - #4738
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (2)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughThe prerender disk-write check now rejects routes with exact ChangesPrerender route validation
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Merge Risk: ⚪ Minimal · up to The changed check preserves traversal protection while allowing filenames containing Security Architecture ReviewSecurity architecture risk: 🔵 Low · up to Exact traversal segments remain blocked, and no new exploitable path was established. However, containment for every newly accepted filename shape is not fully verified, particularly across base-path transformations and Windows filesystem behavior. Retained concerns Security review detailsSecurity Blast Radius
Trust Boundaries and Controls
Hardening Proposals
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
commit: |
🔗 Linked issue
❓ Type of change
📚 Description
noticed this when prerendering an og-image of the form
/_og/s/c_Landing,title_One+API+for+every+code+forge,description_Work+with+issues+...+through+one+typed+API..png. it rendered fine but was skipped because it contained..but I think this was only meant to avoid writing relative paths to disk (?)so this PR only skips rendering paths when
..is an entire path segment📝 Checklist