Skip to content
Dashboard

CVE-2025-30218

Chief Information Security Officer

Link to headingSummary

const randomBytes = new Uint8Array(8)
crypto.getRandomValues(randomBytes)
const middlewareSubrequestId = Buffer.from(randomBytes).toString('hex')
;(globalThis as any)[Symbol.for('@next/middleware-subrequest-id')] =
middlewareSubrequestId

init.headers.set(
'x-middleware-subrequest-id',
(globalThis as any)[Symbol.for('@next/middleware-subrequest-id')]
)

Link to headingImpact

Link to headingRemediation

Link to headingCredit

Ready to deploy?