CVE-2025-48888 Deno run with --allow-read and --deny-read flags results in allowed

Medium 5.5 Published Updated

Deno runtime incorrectly allows read access when conflicting allow and deny flags are used, bypassing intended security restrictions.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2025-48888?

CVE-2025-48888 is a medium-severity vulnerability in denoland deno, published on 4 Jun 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Deno is a JavaScript, TypeScript, and WebAssembly runtime. Starting in version 1.41.3 and prior to versions 2.1.13, 2.2.13, and 2.3.2, `deno run --allow-read --deny-read main.ts` results in allowed, even though 'deny' should be stronger. The result is the same with all global unary permissions given as `--allow-* --deny-*`. This only affects a nonsensical combination of flags, so there shouldn't be a real impact on the userbase. Users may upgrade to version 2.1.13, 2.2.13, or 2.3.2 to receive a patch.

Weakness: CWE-863

Which versions are affected by CVE-2025-48888?

8 open source packages ship an affected version, including deno and deno_runtime. It affects 1 product.

PackageAffectedFixed in
deno crates.ioFrom 1.41.32.1.13
deno crates.ioFrom 1.41.32.1.13
deno crates.ioFrom 2.2.02.2.13
deno crates.ioFrom 2.2.02.2.13
deno crates.ioFrom 2.3.02.3.2
deno crates.ioFrom 2.3.02.3.2
2 more packages
deno_runtime crates.ioFrom 0.150.00.212.0
deno_runtime crates.ioFrom 0.150.00.212.0

Products include Deno Deno.

How do I fix CVE-2025-48888?

Upgrade deno to a fixed version for your release line: 2.1.13, 2.2.13 or 2.3.2.

Is CVE-2025-48888 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-48888 exists.

Sources

Also known as GHSA-xqxc-x6p3-w683, JLSEC-2026-109.

Is CVE-2025-48888 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free