The Docusaurus documentation build resolves image-size@2.0.2 through @docusaurus/mdx-loader. This version is affected by GHSA-5p2g-fcmc-qvqq and GHSA-w3rx-r6r6-pgpr, which can cause infinite-loop denial of service while parsing crafted JXL, HEIF, or ICNS input.
Replace the vulnerable transitive implementation with the exact image-size-next@2.1.1 npm alias while preserving the image-size dependency key and API surface expected by @docusaurus/mdx-loader. Regenerate the lockfile from the canonical public npm registry and remove advisory exceptions that are no longer required.
Acceptance Criteria
Out of Scope
Related
Follow-up
Create a separate maintenance issue to remove the exact alias after an official Docusaurus release no longer resolves an affected image-size package without the override.
The Docusaurus documentation build resolves
image-size@2.0.2through@docusaurus/mdx-loader. This version is affected by GHSA-5p2g-fcmc-qvqq and GHSA-w3rx-r6r6-pgpr, which can cause infinite-loop denial of service while parsing crafted JXL, HEIF, or ICNS input.Replace the vulnerable transitive implementation with the exact
image-size-next@2.1.1npm alias while preserving theimage-sizedependency key and API surface expected by@docusaurus/mdx-loader. Regenerate the lockfile from the canonical public npm registry and remove advisory exceptions that are no longer required.Acceptance Criteria
docs/docusaurus/package.jsonoverridesimage-sizewith the exact aliasnpm:image-size-next@2.1.1.docs/docusaurus/package-lock.jsonresolves the alias from the canonical public npm registry with recorded SHA-512 integrity.image-size@2.0.2.image-size/fromFileAPI required by@docusaurus/mdx-loader.image-sizeadvisory.image-size@2.0.2are reviewed and either retained with valid version-scoped rationale or updated through the governed security process.Out of Scope
Related
Follow-up
Create a separate maintenance issue to remove the exact alias after an official Docusaurus release no longer resolves an affected
image-sizepackage without the override.