A CI job that changed nothing fails on npm audit signatures with EMISSINGSIGNATUREKEY for a package you do not directly depend on, and a re-run an hour later passes. By the end of this you will know which of three faults you have, how to read the exact bytes the failing runner used, and how to keep the check strict instead of pinning npm until the message goes away.
TL;DR: The plural sentence, has attestations but no corresponding public key(s) can be found with no keyid quoted, means pacote found no keyid anywhere in the attestations response. The dominant cause right now is a CDN edge holding a copy of that response generated seconds after publish, before npm's publish attestation was attached, under cache-control: public, max-age=31557600. Read the body out of the job's own cache with npm cache ls | grep attestations/<pkg>; retries, npm cache clean --force and --prefer-online do not move the edge.
Worth saying up front: an assistant trained before 24 February 2026 will answer this as a key-rotation problem, because that is what the error meant until pacote 21.4.0 changed which attestations require a key. The current answer depends on a response body that differs between CDN edges, so no amount of general knowledge about npm signing gets you there.
What do you need before you start?
curl,jqandnodeon the box you are debugging from.- npm on any line. As of the dist-tags on 4 December 2026,
latestis 12.2.3,next-11is 11.21.3 andnext-10is 10.9.11. Every report in npm/cli#10300 ran npm 10.9.9 on Node 22.23.4, the npm that Node 22 bundles. - The failing job's
~/.npm, kept between steps. That cache is the one artifact that settles the diagnosis, so add a step that tars it before the runner is recycled. - Access to
registry.npmjs.orgfrom two networks, one of them the runner, because the finding is that two clients see different bytes.
1. Which of the three sentences did you get?
pacote/lib/registry.js raises EMISSINGSIGNATUREKEY from three places with three different templates. The code is identical in all three, so the sentence is your only discriminator.
| Error sentence | What failed | Where the fix belongs |
|---|---|---|
has a registry signature with keyid: <id> but no corresponding public key can be found | the dist.signatures keyid is missing from /-/npm/v1/keys | mirror or proxy not serving the keys endpoint, or a rotated key |
has attestations with keyid: <id> but no corresponding public key can be found | one keyed attestation names a keyid nobody serves | genuine key mismatch, singular keyid quoted |
has attestations but no corresponding public key(s) can be found | no keyid in the response matched anything | the response arrived incomplete, which is #10300 |
The tell is the plural. public key(s) with no keyid in the message means pacote had nothing to match, rather than something it tried and failed to match. The first row is the 2025 problem, npm/cli#8066, closed that January, and it is what nearly every search result for this error still describes. Giving one message several named rows with a cheap test each is the same discipline that sorts the four causes behind npm ci "are in sync".
2. Read the attestation set the way pacote reads it
curl -s https://registry.npmjs.org/-/npm/v1/attestations/postcss@8.5.32 \
| jq -r '.attestations[] | [.predicateType, (.dsseEnvelope.signatures[0].keyid // "<none>")] | @tsv'
A complete response carries exactly two elements, verified today:
https://github.com/npm/attestation/tree/main/specs/publish/v0.1 SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U
https://slsa.dev/provenance/v1 <none>
Element 0 is npm's publish attestation. It is keyed, and verificationMaterial.publicKey.hint repeats that same keyid. Element 1 is the SLSA provenance, which is keyless: its keyid field is literally the empty string rather than absent, and it carries a Fulcio certificate instead. That keyless path is the Sigstore flow whose transparency-log step produces Yarn's 409 on "error creating tlog entry" at publish time.
An incomplete response has the slsa.dev line and nothing else. Cross-check the keyid against the keys endpoint, where the live key is the entry with "expires": null:
curl -s https://registry.npmjs.org/-/npm/v1/keys | jq -r '.keys[] | [.keyid, (.expires // "never")] | @tsv'
The other key in that response, SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA, expired on 2025-01-29 and is still served, so matching on "the first key" gets you a wrong answer that looks principled.
3. The response that failed is in the job's cache
By the time you curl from a laptop you are asking a different edge, which is why this bug reads as unreproducible. Find the entry pacote actually used:
npm cache ls | grep attestations/postcss
Then dump that entry's body through the cacache npm bundles, pasting the key exactly as the previous command printed it:
node -e '
const cacache = require(process.argv[1]);
cacache.get(process.argv[2], process.argv[3]).then(r => {
for (const a of JSON.parse(r.data).attestations || [])
console.log(a.predicateType, a.dsseEnvelope.signatures[0].keyid || "<none>");
});' \
"$(npm root -g)/npm/node_modules/cacache" \
"$(npm config get cache)/_cacache" \
"make-fetch-happen:request-cache:https://registry.npmjs.org/-/npm/v1/attestations/postcss@8.5.32"
One line of output, and that line the slsa.dev one, closes the diagnosis. Reporters in #10300 found exactly that: a cached body whose Last-Modified was 26 Oct 2026 20:36:52 GMT against a publish time of 2026-10-26T20:36:42.832Z. Ten seconds after publish, before the publish attestation existed, then pinned for a year by max-age=31557600.
What I read for this, in case you want the primary material: issue npm/cli#10300, opened 13 November 2026 with fresh reports on 15 and 28 November and on 1 and 3 December from five unrelated projects; npm/pacote#454 and its CLI companion npm/cli#9026; the npm audit documentation for --include-attestations; and the live registry keys endpoint.
4. Is it the edge, or the registry?
curl -sS -o /dev/null -D - \
https://registry.npmjs.org/-/npm/v1/attestations/lru-cache@11.5.4 \
| grep -iE 'cf-ray|cf-cache-status|age|last-modified'
Run that from the runner, then from one other network, changing only where it runs. One reporter recorded cf-cache-status: HIT with age: 363712, about 4.2 days, on a PDX edge returning the SLSA bundle alone, while an LHR edge returned both elements. The same reporter says neither Cache-Control: no-cache nor a cachebuster query string changed that edge's answer. That is why a retry loop and --prefer-online do nothing for a job that keeps landing on the same POP.
5. Pick the fix from what the cache showed
- Incomplete cached response, the #10300 case. Run the audit step from a host whose attestation responses are not edge-cached, and keep the check strict. The verification below then becomes mandatory, because any npm carrying pacote 21.4.0 or newer accepts that incomplete set without a word.
- Your own npm is older than the keyless fix. Read the bundled pacote version off the box instead of inferring it from the npm version:
grep -m1 '"version"' "$(npm root -g)/npm/node_modules/pacote/package.json". The threshold is 21.4.0, released 24 February 2026, which merged npm/pacote#454, "skip registry key check for keyless (Sigstore/Fulcio) attestations". npm 12.2.2 moved topacote@22.0.1. - A mirror that proxies packages but not keys.
dist.signaturesarrive,/-/npm/v1/keys404s or answers{"keys":[]}, and you get the singular registry-signature sentence. JFrog's Artifactory documentation covers the mixed signed and unsigned npm case; the change belongs in the proxy config, not in npm.
On an October patch day I ran a defensive check against one of my own boxes and deliberately skipped node -v in favour of a behavioural probe, because distro and vendored builds make the release string wrong in both directions. The probe returned the unpatched error code on a box the version table had already cleared. Same rule applies here: read the bundled pacote version and the cached response body, never a mapping from npm version to pacote version.
Verify the publish attestation was actually checked
npm audit signatures
Green is necessary and not sufficient. Then count the publish attestations that were genuinely verified:
npm audit signatures --json --include-attestations | grep -c 'specs/publish/v0.1'
--include-attestations is documented for npm 11 and 12: it adds a verified array holding the DSSE envelopes, verification material and transparency log entries per verified package. Match on the predicate string rather than a jq path, since the nesting moves between releases, and compare the count against the audited package count from the plain run. A package that verified only https://slsa.dev/provenance/v1 had its npm publish attestation skipped, because pacote now demands a registry key only when some bundle carries a keyid, and an incomplete response carries none. bdehamer's review on #454 puts it in a line: no need to error about missing keys when no attestation requires keys. A gate that reports success over a shrunken check is the same trap as the three ways the npm ESTRICTALLOWSCRIPTS gate stays green.
What does not work
- Retrying. Three attempts 20 seconds apart failed in five separate runs in #10300, while a re-run minutes later passed. The variable is which edge answers.
npm cache clean --force. The second reporter cleared the cache on every attempt and failed twice out of two.- Curling from your laptop and declaring the registry healthy. Fifteen fetches of the keys endpoint from another network looked correct while the job kept failing.
- Pinning npm for the audit step. It converts a hard failure into a green audit over a smaller attestation set, the same bargain as the npm 12 workaround behind patch-package "status: 1" and EALLOWREMOTE.
- Assuming a short window after publish.
effect@3.22.6was published 2026-12-02T03:20:01Z and its attestations were last modified at 07:57:04 GMT, roughly four and a half hours later. A cooldown measured in minutes does not cover that.
One claim from the thread I could not reproduce
A reporter states that --registry https://registry.npmjs.com/ returns cf-cache-status: DYNAMIC with the complete record and has passed consistently. npm has not confirmed it, and I have not seen it from a failing runner. The command in step 4, run against both hosts and compared on cf-cache-status, settles it for your network. Before you move a CI job to that hostname, remember that it changes the host your auth token is scoped to and the URLs written into lockfiles. Issue #10300 is still open as of 4 December 2026, labelled Bug and area:registry on 1 December, with no maintainer reply.
FAQ
Does retrying npm audit signatures ever work? Only by luck. A later re-run can pass because it lands on a different edge, but three attempts 20 seconds apart failed in five separate runs reported in #10300. A retry loop inside one job keeps the same route.
Is EMISSINGSIGNATUREKEY my lockfile's fault? No. The error comes from the attestations response for a version that is already published, not from resolution, which is why it lands on a commit that changed no dependency.
Does upgrading npm fix it? It stops the message. pacote 21.4.0 skips the registry key check for keyless attestations, so an incomplete response now passes with the publish attestation unverified. Count specs/publish/v0.1 before you trust that green.
Can I verify the npm publish attestation offline? Not with npm alone. The key material comes from /-/npm/v1/keys, and the live key is the entry whose expires is null, so a fully offline run means serving that endpoint yourself.
Start here on your next red build
Before changing anything, read the two things that decide which row you are in:
grep -m1 '"version"' "$(npm root -g)/npm/node_modules/pacote/package.json"
npm cache ls | grep attestations/
Comments
Be the first to comment.