8000 SECURITY: uv, prek, tealdeer, nickel, nickel-lsp, tuicr, biome, teamtype, probe-rs, sccache, railway: lock rustls-webpki 0.103.16 + webpki-roots 1.0.10 (CVE-2026-111943) by bryan-minimal · Pull Request #953 · gominimal/pkgs · GitHub
[go: up one dir, main page]

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions packages/biome/build.ncl
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
let { standaloneTest, subsetOf, BuildSpec, Local, OutputBin, Source, Test, .. } = import "minimal.ncl" in
let base = import "../base/build.ncl" in
let patch = import "../patch/build.ncl" in
let make = import "../make/build.ncl" in
let rust = import "../rust/build.ncl" in
let toolchain = import "../toolchain/build.ncl" in
Expand All @@ -13,13 +14,22 @@ let version = "2.5.15" in

build_deps = [
{ file = "build.sh" } | Local,
# CVE-2026-111943 (eMudhra intermediate key compromise): pins rustls-webpki
# 0.103.16 (RUSTSEC-2026-0382, distrusts the 8 intermediates) and
# webpki-roots / webpki-root-certs 1.0.10 (RUSTSEC-2026-0383, drops emSign ECC
# Root CA - G3) in upstream's Cargo.lock. Lock-only: version + checksum lines
# (plus whatever cargo had to move with them). Drop on the first upstream
# release whose Cargo.lock already has those versions; a version bump that
# keeps it fails at `patch` rather than silently shipping the old lock.
{ file = "cve-2026-111943-webpki-lock.patch" } | Local,
{
url = "https://github.com/biomejs/biome/archive/refs/tags/@biomejs/biome@%{version}.tar.gz",
sha256 = "0212a8f9e351e2d47580cf8371948dd477ceb01e0fef1a65f81061a2a4a39039",
extract = true,
strip_prefix = "biome--biomejs-biome-%{version}",
} | Source,
base,
patch,
make,
rust,
toolchain,
Expand Down
18 changes: 17 additions & 1 deletion packages/biome/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,23 @@ export LD=gcc
export BIOME_VERSION="$MINIMAL_ARG_VERSION"
export RUSTFLAGS="-C linker=gcc --remap-path-prefix=$(pwd)=/builddir --remap-path-prefix=$HOME/.cargo=/cargo"

cargo build --release -p biome_cli
# CVE-2026-111943: move upstream's Cargo.lock to rustls-webpki 0.103.16 and
# webpki-roots / webpki-root-certs 1.0.10 (see build.ncl). Applied by name so a
# missing or stale patch fails the build.
patch -Np1 -i ./cve-2026-111943-webpki-lock.patch
# Prove it landed, fail-closed: the fixed verifier is locked, and no pre-fix
# rustls-webpki 0.103.x or webpki-roots / webpki-root-certs 1.0.x remains.
grep -A1 '^name = "rustls-webpki"$' Cargo.lock | grep -q '^version = "0.103.16"$' || {
echo "ERROR: rustls-webpki 0.103.16 is not in Cargo.lock (CVE-2026-111943)" >&2
exit 1
}
if grep -A1 -E '^name = "(rustls-webpki|webpki-roots|webpki-root-certs)"$' Cargo.lock |
grep -qE '^version = "(0[.]103[.]([0-9]|1[0-5])|1[.]0[.][0-9])"$'; then
echo "ERROR: a pre-CVE-2026-111943 rustls-webpki / webpki-roots is still in Cargo.lock" >&2
exit 1
fi

cargo build --locked --release -p biome_cli

mkdir -p $OUTPUT_DIR/usr/bin
cp target/release/biome $OUTPUT_DIR/usr/bin/
26 changes: 26 additions & 0 deletions packages/biome/cve-2026-111943-webpki-lock.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -5651,9 +5651,9 @@

[[package]]
name = "rustls-webpki"
-version = "0.103.15"
+version = "0.103.16"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f3c3cf1d8b1e7d4927e2d154c3fcb02979afb9939629c62cd9048d4f07b60ac2"
+checksum = "4443b1b6d39d7c663139942cc4558262562d2c84123bb6282ef177009ca8b281"
dependencies = [
"ring",
"rustls-pki-types",
@@ -6992,9 +6992,9 @@

[[package]]
name = "webpki-roots"
-version = "1.0.3"
+version = "1.0.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "32b130c0d2d49f8b6889abc456e795e82525204f27c42cf767cf0d7734e089b8"
+checksum = "1c1c8e20c8a38fc7d65abfe74eb7280e4aa667e8eec8bc84996d2874810748d9"
dependencies = [
"rustls-pki-types",
]
10 changes: 10 additions & 0 deletions packages/nickel-lsp/build.ncl
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
let { subsetOf, Attrs, BuildSpec, Local, OutputBin, Source, .. } = import "minimal.ncl" in
let base = import "../base/build.ncl" in
let patch = import "../patch/build.ncl" in
let gcc = import "../gcc/build.ncl" in
let glibc = import "../glibc/build.ncl" in
let rust = import "../rust/build.ncl" in
Expand All @@ -10,13 +11,22 @@ let version = "1.17.0" in
name = "nickel-lsp",
build_deps = [
{ file = "build.sh" } | Local,
# CVE-2026-111943 (eMudhra intermediate key compromise): pins rustls-webpki
# 0.103.16 (RUSTSEC-2026-0382, distrusts the 8 intermediates) and
# webpki-roots / webpki-root-certs 1.0.10 (RUSTSEC-2026-0383, drops emSign ECC
# Root CA - G3) in upstream's Cargo.lock. Lock-only: version + checksum lines
# (plus whatever cargo had to move with them). Drop on the first upstream
# release whose Cargo.lock already has those versions; a version bump that
# keeps it fails at `patch` rather than silently shipping the old lock.
{ file = "cve-2026-111943-webpki-lock.patch" } | Local,
{
url = "https://github.com/nickel-lang/nickel/archive/refs/tags/%{version}.tar.gz",
sha256 = "8cc47b3a2b9ed4e3b7fca06f36a8a295d231e9f8bb112d0cc02081583c189f75",
extract = true,
strip_prefix = "nickel-%{version}",
} | Source,
base,
patch,
rust,
toolchain,
],
Expand Down
18 changes: 17 additions & 1 deletion packages/nickel-lsp/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,23 @@ export CC=gcc
export LD=gcc
export RUSTFLAGS="-C linker=gcc"

cargo build --release -p nickel-lang-lsp
# CVE-2026-111943: move upstream's Cargo.lock to rustls-webpki 0.103.16 and
# webpki-roots / webpki-root-certs 1.0.10 (see build.ncl). Applied by name so a
# missing or stale patch fails the build.
patch -Np1 -i ./cve-2026-111943-webpki-lock.patch
# Prove it landed, fail-closed: the fixed verifier is locked, and no pre-fix
# rustls-webpki 0.103.x or webpki-roots / webpki-root-certs 1.0.x remains.
grep -A1 '^name = "rustls-webpki"$' Cargo.lock | grep -q '^version = "0.103.16"$' || {
echo "ERROR: rustls-webpki 0.103.16 is not in Cargo.lock (CVE-2026-111943)" >&2
exit 1
}
if grep -A1 -E '^name = "(rustls-webpki|webpki-roots|webpki-root-certs)"$' Cargo.lock |
grep -qE '^version = "(0[.]103[.]([0-9]|1[0-5])|1[.]0[.][0-9])"$'; then
echo "ERROR: a pre-CVE-2026-111943 rustls-webpki / webpki-roots is still in Cargo.lock" >&2
exit 1
fi

cargo build --locked --release -p nickel-lang-lsp

mkdir -p $OUTPUT_DIR/usr/bin
cp target/release/nls $OUTPUT_DIR/usr/bin/
26 changes: 26 additions & 0 deletions packages/nickel-lsp/cve-2026-111943-webpki-lock.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -4756,9 +4756,9 @@

[[package]]
name = "rustls-webpki"
-version = "0.103.13"
+version = "0.103.16"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "61c429a8649f110dddef65e2a5ad240f747e85f7758a6bccc7e5777bd33f756e"
+checksum = "4443b1b6d39d7c663139942cc4558262562d2c84123bb6282ef177009ca8b281"
dependencies = [
"ring",
"rustls-pki-types",
@@ -6112,9 +6112,9 @@

[[package]]
name = "webpki-roots"
-version = "1.0.2"
+version = "1.0.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7e8983c3ab33d6fb807cfcdad2491c4ea8cbc8ed839181c7dfd9c67c83e261b2"
+checksum = "1c1c8e20c8a38fc7d65abfe74eb7280e4aa667e8eec8bc84996d2874810748d9"
dependencies = [
"rustls-pki-types",
]
10 changes: 10 additions & 0 deletions packages/nickel/build.ncl
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
let { subsetOf, BuildSpec, Local, OutputBin, Source, .. } = import "minimal.ncl" in
let base = import "../base/build.ncl" in
let patch = import "../patch/build.ncl" in
let rust = import "../rust/build.ncl" in
let toolchain = import "../toolchain/build.ncl" in

Expand All @@ -11,13 +12,22 @@ let version = "1.17.0" in
name = "nickel",
build_deps = [
{ file = "build.sh" } | Local,
# CVE-2026-111943 (eMudhra intermediate key compromise): pins rustls-webpki
# 0.103.16 (RUSTSEC-2026-0382, distrusts the 8 intermediates) and
# webpki-roots / webpki-root-certs 1.0.10 (RUSTSEC-2026-0383, drops emSign ECC
# Root CA - G3) in upstream's Cargo.lock. Lock-only: version + checksum lines
# (plus whatever cargo had to move with them). Drop on the first upstream
# release whose Cargo.lock already has those versions; a version bump that
# keeps it fails at `patch` rather than silently shipping the old lock.
{ file = "cve-2026-111943-webpki-lock.patch" } | Local,
{
url = "https://github.com/nickel-lang/nickel/archive/refs/tags/%{version}.tar.gz",
sha256 = "8cc47b3a2b9ed4e3b7fca06f36a8a295d231e9f8bb112d0cc02081583c189f75",
extract = true,
strip_prefix = "nickel-%{version}",
} | Source,
base,
patch,
rust,
toolchain,
],
Expand Down
18 changes: 17 additions & 1 deletion packages/nickel/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,23 @@ export CC=gcc
export LD=gcc
export RUSTFLAGS="-C linker=gcc"

cargo build --release -p nickel-lang-cli
# CVE-2026-111943: move upstream's Cargo.lock to rustls-webpki 0.103.16 and
# webpki-roots / webpki-root-certs 1.0.10 (see build.ncl). Applied by name so a
# missing or stale patch fails the build.
patch -Np1 -i ./cve-2026-111943-webpki-lock.patch
# Prove it landed, fail-closed: the fixed verifier is locked, and no pre-fix
# rustls-webpki 0.103.x or webpki-roots / webpki-root-certs 1.0.x remains.
grep -A1 '^name = "rustls-webpki"$' Cargo.lock | grep -q '^version = "0.103.16"$' || {
echo "ERROR: rustls-webpki 0.103.16 is not in Cargo.lock (CVE-2026-111943)" >&2
exit 1
}
if grep -A1 -E '^name = "(rustls-webpki|webpki-roots|webpki-root-certs)"$' Cargo.lock |
grep -qE '^version = "(0[.]103[.]([0-9]|1[0-5])|1[.]0[.][0-9])"$'; then
echo "ERROR: a pre-CVE-2026-111943 rustls-webpki / webpki-roots is still in Cargo.lock" >&2
exit 1
fi

cargo build --locked --release -p nickel-lang-cli

mkdir -p $OUTPUT_DIR/usr/bin
cp target/release/nickel $OUTPUT_DIR/usr/bin/
26 changes: 26 additions & 0 deletions packages/nickel/cve-2026-111943-webpki-lock.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -4756,9 +4756,9 @@

[[package]]
name = "rustls-webpki"
-version = "0.103.13"
+version = "0.103.16"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "61c429a8649f110dddef65e2a5ad240f747e85f7758a6bccc7e5777bd33f756e"
+checksum = "4443b1b6d39d7c663139942cc4558262562d2c84123bb6282ef177009ca8b281"
dependencies = [
"ring",
"rustls-pki-types",
@@ -6112,9 +6112,9 @@

[[package]]
name = "webpki-roots"
-version = "1.0.2"
+version = "1.0.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7e8983c3ab33d6fb807cfcdad2491c4ea8cbc8ed839181c7dfd9c67c83e261b2"
+checksum = "1c1c8e20c8a38fc7d65abfe74eb7280e4aa667e8eec8bc84996d2874810748d9"
dependencies = [
"rustls-pki-types",
]
10 changes: 10 additions & 0 deletions packages/prek/build.ncl
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
let { subsetOf, Attrs, BuildSpec, Local, OutputLib, Source, .. } = import "minimal.ncl" in
let base = import "../base/build.ncl" in
let patch = import "../patch/build.ncl" in
let rust = import "../rust/build.ncl" in
let toolchain = import "../toolchain/build.ncl" in

Expand All @@ -11,13 +12,22 @@ let version = "0.5.3" in
name = "prek",
build_deps = [
{ file = "build.sh" } | Local,
# CVE-2026-111943 (eMudhra intermediate key compromise): pins rustls-webpki
# 0.103.16 (RUSTSEC-2026-0382, distrusts the 8 intermediates) and
# webpki-roots / webpki-root-certs 1.0.10 (RUSTSEC-2026-0383, drops emSign ECC
# Root CA - G3) in upstream's Cargo.lock. Lock-only: version + checksum lines
# (plus whatever cargo had to move with them). Drop on the first upstream
# release whose Cargo.lock already has those versions; a version bump that
# keeps it fails at `patch` rather than silently shipping the old lock.
{ file = "cve-2026-111943-webpki-lock.patch" } | Local,
{
url = "gs://minimal-staging-archives/j178/prek/v%{version}.tar.gz",
sha256 = "2de788f26f8f32691c848d6ce3345c7df632813b099a3c0f48f10f3b37866d7a",
extract = true,
strip_prefix = "prek-%{version}",
} | Source,
base,
patch,
rust,
toolchain,
],
Expand Down
18 changes: 17 additions & 1 deletion packages/prek/build.sh
< 10BC8 td class="blob-num blob-num-addition empty-cell">
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,23 @@ export CC=gcc
export LD=gcc
export RUSTFLAGS="-C linker=gcc"

cargo build --release
# CVE-2026-111943: move upstream's Cargo.lock to rustls-webpki 0.103.16 and
# webpki-roots / webpki-root-certs 1.0.10 (see build.ncl). Applied by name so a
# missing or stale patch fails the build.
patch -Np1 -i ./cve-2026-111943-webpki-lock.patch
# Prove it landed, fail-closed: the fixed verifier is locked, and no pre-fix
# rustls-webpki 0.103.x or webpki-roots / webpki-root-certs 1.0.x remains.
grep -A1 '^name = "rustls-webpki"$' Cargo.lock | grep -q '^version = "0.103.16"$' || {
echo "ERROR: rustls-webpki 0.103.16 is not in Cargo.lock (CVE-2026-111943)" >&2
exit 1
}
if grep -A1 -E '^name = "(rustls-webpki|webpki-roots|webpki-root-certs)"$' Cargo.lock |
grep -qE '^version = "(0[.]103[.]([0-9]|1[0-5])|1[.]0[.][0-9])"$'; then
echo "ERROR: a pre-CVE-2026-111943 rustls-webpki / webpki-roots is still in Cargo.lock" >&2
exit 1
fi

cargo build --locked --release

mkdir -p $OUTPUT_DIR/usr/bin
ls -lah target/release
Expand Down
26 changes: 26 additions & 0 deletions packages/prek/cve-2026-111943-webpki-lock.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2463,9 +2463,9 @@

[[package]]
name = "rustls-webpki"
-version = "0.103.13"
+version = "0.103.16"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "61c429a8649f110dddef65e2a5ad240f747e85f7758a6bccc7e5777bd33f756e"
+checksum = "4443b1b6d39d7c663139942cc4558262562d2c84123bb6282ef177009ca8b281"
dependencies = [
"aws-lc-rs",
"ring",
@@ -3500,9 +3500,9 @@

[[package]]
name = "webpki-root-certs"
-version = "1.0.9"
+version = "1.0.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b96554aa2acc8ccdb7e1c9a58a7a68dd5d13bccc69cd124cb09406db612a1c9b"
+checksum = "58ec80e73fd8baf57bf0d9615554c75348bda990d6d5bbeab964dd068319fecb"
dependencies = [
"rustls-pki-types",
]
10 changes: 10 additions & 0 deletions packages/probe-rs/build.ncl
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
let { standaloneTest, subsetOf, BuildSpec, Local, Needs, OutputBin, Source, .. } = import "minimal.ncl" in
let base = import "../base/build.ncl" in
let patch = import "../patch/build.ncl" in
let gcc = import "../gcc/build.ncl" in
let glibc = import "../glibc/build.ncl" in
let rust = import "../rust/build.ncl" in
Expand All @@ -11,13 +12,22 @@ let version = "0.32.0" in

build_deps = [
{ file = "build.sh" } | Local,
# CVE-2026-111943 (eMudhra intermediate key compromise): pins rustls-webpki
# 0.103.16 (RUSTSEC-2026-0382, distrusts the 8 intermediates) and
# webpki-roots / webpki-root-certs 1.0.10 (RUSTSEC-2026-0383, drops emSign ECC
# Root CA - G3) in upstream's Cargo.lock. Lock-only: version + checksum lines
# (plus whatever cargo had to move with them). Drop on the first upstream
# release whose Cargo.lock already has those versions; a version bump that
# keeps it fails at `patch` rather than silently shipping the old lock.
{ file = "cve-2026-111943-webpki-lock.patch" } | Local,
{
url = "https://github.com/probe-rs/probe-rs/archive/refs/tags/v%{version}.tar.gz",
sha256 = "9c4ba2046d4709f6a07e47933b1aa7edaf72a4d0a9f482b81d81798879070229",
extract = true,
strip_prefix = "probe-rs-%{version}",
} | Source,
base,
patch,
rust,
toolchain,
],
Expand Down
18 changes: 17 additions & 1 deletion packages/probe-rs/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,23 @@ export CC=gcc
export LD=gcc
export RUSTFLAGS="-C linker=gcc"

cargo build --release -p probe-rs-tools
# CVE-2026-111943: move upstream's Cargo.lock to rustls-webpki 0.103.16 and
# webpki-roots / webpki-root-certs 1.0.10 (see build.ncl). Applied by name so a
# missing or stale patch fails the build.
patch -Np1 -i ./cve-2026-111943-webpki-lock.patch
# Prove it landed, fail-closed: the fixed verifier is locked, and no pre-fix
# rustls-webpki 0.103.x or webpki-roots / webpki-root-certs 1.0.x remains.
grep -A1 '^name = "rustls-webpki"$' Cargo.lock | grep -q '^version = "0.103.16"$' || {
echo "ERROR: rustls-webpki 0.103.16 is not in Cargo.lock (CVE-2026-111943)" >&2
exit 1
}
if grep -A1 -E '^name = "(rustls-webpki|webpki-roots|webpki-root-certs)"$' Cargo.lock |
grep -qE '^version = "(0[.]103[.]([0-9]|1[0-5])|1[.]0[.][0-9])"$'; then
echo "ERROR: a pre-CVE-2026-111943 rustls-webpki / webpki-roots is still in Cargo.lock" >&2
exit 1
fi

cargo build --locked --release -p probe-rs-tools

mkdir -p $OUTPUT_DIR/usr/bin
cp target/release/probe-rs $OUTPUT_DIR/usr/bin/
Expand Down
Loading
Loading
0