particle-academy/prism-browser
Prism Browser is a Laravel package that provides a simple, browsable interface for Prism-powered content. Explore, preview, and navigate Prism items from your app with minimal setup, staying within familiar Laravel conventions. Ideal for quick inspection and demos.
BrowserPolicy with user-supplied host allow-lists should treat upgrade as a priority, because shorthand IPv4 forms could previously bypass non-public address checks and reach localhost or cloud metadata endpoints.inet_aton—including integer, octal, hex, and shorthand forms—without DNS. This is exactly the kind of edge-case-heavy security logic most product teams should buy or reuse rather than maintain in-house.Consider adopting or upgrading when:
Look elsewhere or add complementary controls when:
Executive summary: A new security release, v0.1.2, closes an SSRF-style bypass in BrowserPolicy. Attackers could supply shorthand, integer, octal, or hex IPv4 forms—such as 127.1, 0x7f000001, or 2130706433—that browsers resolve to 127.0.0.1, or forms that reach the cloud metadata endpoint. The package now parses these with inet_aton-style rules and refuses them like any other non-public address.
Engineering summary: No breaking changes. Upgrade is recommended if the application allow-lists hosts from untrusted input. Validate existing behavior for digit-only hostnames, which remain names, and add regression tests for shorthand IPv4 and metadata-endpoint cases. This release improves the package’s fitness for security-sensitive URL and host validation, while broader SSRF controls should still be evaluated separately.
How can I help you explore Laravel packages today?