Our extension is built with pnpm and rspack, so we submit source with every version. Some of our npm dependencies come from a security mirror (Echo.ai) that backports CVE fixes into existing releases. The version number matches upstream, but the bytes differ from registry.npmjs.org.
Questions:
Is a disclosed security backport like this acceptable, or must bundled libraries be byte-identical to the npm release?
Does that rule also apply to patched build tooling that never ends up in the shipped extension?
Does the build-for-amo automatic builder support pnpm via corepack?
Our plan:
Include the patched tarballs in the source zip. The build then reproduces byte-for-byte without any private registry.
In Notes for Reviewers, list each patched package with a link to its upstream release and diff against upstream.
I think your proposed approach is sensible from a security and reproducibility standpoint, especially if you include the patched tarballs and document the differences from upstream.
However, I’d be careful about assuming that disclosure alone makes modified dependencies acceptable under AMO’s development practices policy. The wording that modifications to libraries and frameworks are not permitted could apply even when the changes are security fixes.
I’d recommend asking the AMO review team to clarify the policy for this specific case before submitting, and explicitly distinguishing between:
Libraries shipped in the extension: These are the main concern under the published policy.
Build-only dependencies: These don’t reach users in the packaged extension, so their treatment may differ, although the build environment still needs to be reproducible.
Build tooling: For pnpm and Corepack support, I’d verify the current requirements of the build-for-amo builder rather than assume that every package manager is supported.
Your plan to include the patched tarballs and document each patch against its upstream release is a good way to make the review auditable. I’d also explain why the backport is necessary and provide the relevant CVE references.
Ultimately, though, I’d seek an explicit answer from the reviewers on whether a security-only backport is an exception to the modification policy.
Hope you can get a definitive answer from the team!
Regards, AC1DST4R