distributions icon indicating copy to clipboard operation
distributions copied to clipboard

Debian repository signing key uses SHA1, will be rejected by apt policy in February 2026

Open Alvin-Zilverstand opened this issue 11 months ago โ€ข 22 comments

Description

The NodeSource APT repository for Debian is using a GPG signing key with SHA1 hashing, which is being flagged by apt's security policy and will be rejected starting February 1, 2026.

Environment

  • Distribution: Debian Trixie (testing)
  • Repository: https://deb.nodesource.com/node_20.x
  • Node.js version: 20.19.6-1nodesource1
  • Date: December 24, 2025

Current Behavior

When running apt update --audit, the following warning and audit messages appear:

Warning: https://deb.nodesource.com/node_20.x/dists/nodistro/InRelease: Policy will reject signature within a year, see --audit for details
Audit: https://deb.nodesource.com/node_20.x/dists/nodistro/InRelease: Sub-process /usr/bin/sqv returned an error code (1), error message is:
   Signing key on 6F71F525282841EEDAF851B42F59B5F99B1BE0B4 is not bound:
              No binding signature at time 2025-12-04T19:30:50Z
     because: Policy rejected non-revocation signature (PositiveCertification) requiring second pre-image resistance
     because: SHA1 is not considered secure since 2026-02-01T00:00:00Z

Expected Behavior

The repository signing key should use a modern hashing algorithm (SHA256 or stronger) that complies with current APT security policies.

Impact

  • Current: Repository still functions but generates security warnings
  • After February 1, 2026: APT will reject the repository signature, preventing package installations and updates

Affected Key

  • Key ID: 6F71F525282841EEDAF851B42F59B5F99B1BE0B4
  • Issue: Uses SHA1 for binding signatures

Suggested Solution

Please update the repository signing key to use SHA256 or SHA512 hashing algorithms to ensure compatibility with modern APT security policies.

Additional Context

This affects all users on Debian systems (and potentially Ubuntu) using the NodeSource repositories. The deadline is approaching in approximately two months.

Workaround

Users can temporarily ignore the warning or switch to alternative Node.js installation methods (nvm, official Debian packages, etc.), but an official fix would be preferred to maintain the repository's reliability.

Alvin-Zilverstand avatar Dec 24 '25 14:12 Alvin-Zilverstand

๐Ÿ“ CodeRabbit Plan Mode

Generate an implementation plan and prompts that you can use with your favorite coding agent.

  • [ ] Create Plan
Examples

๐Ÿ”— Similar Issues

Related Issues

  • https://github.com/nodesource/distributions/issues/1882
  • https://github.com/nodesource/distributions/issues/1904
  • https://github.com/nodesource/distributions/issues/1887
๐Ÿ‘ค Suggested Assignees

๐Ÿงช Issue enrichment is currently in open beta.

You can configure auto-planning by selecting labels in the issue_enrichment configuration.

To disable automatic issue enrichment, add the following to your .coderabbit.yaml:

issue_enrichment:
  auto_enrich:
    enabled: false

๐Ÿ’ฌ Have feedback or questions? Drop into our discord!

coderabbitai[bot] avatar Dec 24 '25 14:12 coderabbitai[bot]

same for version 22 :)

EricMeallier avatar Jan 12 '26 10:01 EricMeallier

Thanks for the update!

The fixes are now live in the repository. Weโ€™ve also integrated apt update --audit into our CI to catch these issues early moving forward.

Image

Everything should be working smoothly now. You can check the changes here.

JesusPaz avatar Jan 19 '26 19:01 JesusPaz

@JesusPaz thanks for the updates. I am trying to (yes, I know it is old!) install using setup_14.x on Ubuntu 20.04 and still have PUBKEY errors. Does the new signing key not work with any of the older versions? Can this be fixed?

build	21-Jan-2026 18:41:28	Get:5 https://deb.nodesource.com/node_14.x focal InRelease [4583 B]
build	21-Jan-2026 18:41:28	Hit:6 http://security.ubuntu.com/ubuntu focal-security InRelease
build	21-Jan-2026 18:41:28	Err:5 https://deb.nodesource.com/node_14.x focal InRelease
build	21-Jan-2026 18:41:28	  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 1655A0AB68576280
build	21-Jan-2026 18:41:29	Hit:7 http://ppa.launchpad.net/git-core/ppa/ubuntu focal InRelease
build	21-Jan-2026 18:41:30	Reading package lists...
error	21-Jan-2026 18:41:30	W: GPG error: https://deb.nodesource.com/node_14.x focal InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 1655A0AB68576280
error	21-Jan-2026 18:41:30	E: The repository 'https://deb.nodesource.com/node_14.x focal InRelease' is not signed.

dvangeyn avatar Jan 21 '26 19:01 dvangeyn

This is affecting us also on version 12.x...

jurschel-gmt avatar Jan 22 '26 17:01 jurschel-gmt

Today is the day! shouldnt this be fixed by now?

sIRwa2 avatar Feb 01 '26 08:02 sIRwa2

Err:4 https://deb.nodesource.com/node_20.x nodistro InRelease
  Sub-process /usr/bin/sqv returned an error code (1), error message is: Signing key on 6F71F525282841EEDAF851B42F59B5F99B1BE0B4 is not bound:
            No binding signature at time 2026-01-19T15:27:46Z
   because: Policy rejected non-revocation signature (PositiveCertification) requiring second pre-image resistance
   because: SHA1 is not considered secure since 2026-02-01T00:00:00Z

ShadowJonathan avatar Feb 02 '26 09:02 ShadowJonathan

Fix (as root):

curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /usr/share/keyrings/nodesource.gpg

AbelLykens avatar Feb 02 '26 09:02 AbelLykens

@AbelLykens this doesn't work, because its still SHA1

ShadowJonathan avatar Feb 02 '26 10:02 ShadowJonathan

@AbelLykens this doesn't work, because its still SHA1

My apt update works again...

AbelLykens avatar Feb 02 '26 11:02 AbelLykens

The issue is not fixed. The GPG key still contains SHA1 binding signatures:

$ curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --list-packets 2>&1 | grep 'digest algo'
	digest algo 10, begin of digest bd 02
	digest algo 2, begin of digest 4f ce

Digest algo 2 is SHA1. The key needs to be re-signed with SHA256+ self-signatures.

Current behavior on Debian Trixie (Feb 2, 2026):

Err:10 https://deb.nodesource.com/node_22.x nodistro InRelease
  Sub-process /usr/bin/sqv returned an error code (1), error message is: Signing key on 6F71F525282841EEDAF851B42F59B5F99B1BE0B4 is not bound:
  No binding signature at time 2026-01-23T18:12:38Z
  because: Policy rejected non-revocation signature (PositiveCertification) requiring second pre-image resistance
  because: SHA1 is not considered secure since 2026-02-01T00:00:00Z

Please reopen this issue.

glamberson avatar Feb 02 '26 17:02 glamberson

I logged a new issue about this, #1920. Definitely still a problem. Workaround there if you need it.

kyrofa avatar Feb 02 '26 18:02 kyrofa

It works on Debian 13 with @AbelLykens command. You just need to make sure that your sources.list is using the right key:

deb [arch=amd64 signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_22.x nodistro main

Alwaysin avatar Feb 04 '26 08:02 Alwaysin

@Alwaysin what version Debian are you running?

ShadowJonathan avatar Feb 04 '26 21:02 ShadowJonathan

Yeah I think this policy is only in place as of Debian 13.

kyrofa avatar Feb 04 '26 21:02 kyrofa

It works on Debian 13 with @AbelLykens command. You just need to make sure that your sources.list is using the right key:

deb [arch=amd64 signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_22.x nodistro main

works for me too :)

cweiland avatar Feb 05 '26 23:02 cweiland

Confirmed, this appears to be working again.

kyrofa avatar Feb 05 '26 23:02 kyrofa

Why the change in key location? Why not just copy the key directly to where it's supposed to be, instead of copying it somewhere else and then having to update the source?

Is /etc/apt/keyrings outdated and /usr/share/keyrings preferred?

srkovnar avatar Feb 07 '26 19:02 srkovnar

Why the change in key location? Why not just copy the key directly to where it's supposed to be, instead of copying it somewhere else and then having to update the source?

Is /etc/apt/keyrings outdated and /usr/share/keyrings preferred?

From man sources.list:

The recommended locations for keyrings are /usr/share/keyrings for keyrings managed by packages, and /etc/apt/keyrings for keyrings managed by the system operator.

Unspec7 avatar Feb 07 '26 19:02 Unspec7

For anyone still hitting the SHA1 rejection on Debian 13 (apt 2.8+):

Even though the repository key has been updated upstream, existing systems may still have the old key in their local keyring.

What worked for me was to completely replace the local keyring and ensure the source entry explicitly uses signed-by=:

  1. Remove old key and source entry

     rm -f /usr/share/keyrings/nodesource.gpg
     rm -f /etc/apt/sources.list.d/nodesource.list
    
  2. Re-import the current key

    curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key \
    | gpg --dearmor -o /usr/share/keyrings/nodesource.gpg
    
  3. Recreate the source entry

    deb [signed-by=/usr/share/keyrings/nodesource.gpg] \
    https://deb.nodesource.com/node_22.x nodistro main
    
  4. apt update

After replacing the local keyring, the SHA1 policy error disappeared.

phonon112358 avatar Feb 19 '26 22:02 phonon112358