Skip to content

Fixes CVE-2026-56017, which would SEGFAULT Perl.#11

Merged
bleargh45 merged 1 commit into
mainfrom
bleargh.address-cve-2026-56017
Jun 28, 2026
Merged

Fixes CVE-2026-56017, which would SEGFAULT Perl.#11
bleargh45 merged 1 commit into
mainfrom
bleargh.address-cve-2026-56017

Conversation

@bleargh45

Copy link
Copy Markdown
Owner

Much thanks to CPANSec for reporting the issue, and for providing a
prototype fix.

CVE-2026-56017:

JavaScript::Minifier::XS: NULL-pointer dereference (SIGSEGV) in regex/division disambiguator on attacker-supplied JS

Trigger: the public minify() API on attacker-supplied JavaScript as small as a single / byte (also /x, /b/c, /re/). Any deployment that minifies untrusted or third-party JS is exposed.

Impact: process crash -> denial of service. A one-byte input crashes the worker that minifies it; in a long-lived server (Plack/Catalyst/Mojolicious asset middleware, a CDN or on-the-fly minifier endpoint) that is a remote DoS.

Much thanks to CPANSec for reporting the issue, and for providing a
prototype fix.

> CVE-2026-56017:
>
> JavaScript::Minifier::XS: NULL-pointer dereference (SIGSEGV) in regex/division disambiguator on attacker-supplied JS
>
> Trigger: the public minify() API on attacker-supplied JavaScript as small as a single / byte (also /x, /b/c,  /re/). Any deployment that minifies untrusted or third-party JS is exposed.
>
> Impact: process crash -> denial of service. A one-byte input crashes the worker that minifies it; in a long-lived server (Plack/Catalyst/Mojolicious asset middleware, a CDN or on-the-fly minifier endpoint) that is a remote DoS.
@bleargh45 bleargh45 merged commit cb7c3c0 into main Jun 28, 2026
40 checks passed
@bleargh45 bleargh45 deleted the bleargh.address-cve-2026-56017 branch June 28, 2026 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant