Vulnerability library
Security checkApril 10, 2026

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

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

Low severitynpmunhead

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

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:

  • Affected version(s): >= 3.0.0-beta.5, <= 3.0.0
  • Patched version(s): 3.0.1

References

Could your website be exposed too?

SmartScanner can check your website for unhead: Streaming SSR `streamKey` injected into inline script without identifier validation and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated April 10, 2026