Vulnerabilities/

unhead: Streaming SSR `streamKey` injected into inline script without identifier validation

Severity:
Low

Description

createStreamableHead({ streamKey }) interpolated its streamKey argument directly into the streaming SSR bootstrap and suspense-chunk inline scripts without identifier validation or escaping. If an application forwards untrusted data into that configuration value, the rendered scripts become a script-injection sink.

Recommendation

Update the unhead package to the latest compatible version. Followings are version details:

References

Related Issues

Tags:
npm
unhead
Anything's wrong? Let us know Last updated on April 10, 2026