CVE-2026-78497: JQ::Lite versions before 2.51 for Perl execute Perl code embedded in a query's regular expression by compiling it with string eval

Published Oct 18, 2026
·
Updated

JQ::Lite versions before 2.51 for Perl execute Perl code embedded in a query's regular expression by compiling it with string eval.

The pattern given to test(), match(), or the match and =~ conditions of select() is placed in a qr'...' literal and compiled as source text, so a (?{ ... }) code block in it runs without use re 'eval'. Single quotes in the pattern are escaped, but a code block runs in place and needs none.

An attacker who supplies a query, or text that an application inserts into the pattern of one, can execute arbitrary Perl code in the calling process.

Affected Software

1 affected component
cpan/JQ::Lite<2.51

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade JQ::Lite to a version that resolves this vulnerability.

    Fixed in 2.51

Event History

Oct 18, 2026
CVE Published
via MITRE·11:32 AM
Data Sourced
via MITRE·11:32 AM
RemedyDescriptionWeakness
Data Sourced
via NVD·12:17 PM
DescriptionWeakness

Frequently Asked Questions

1

Who is exposed to this issue?

Applications using JQ::Lite before 2.51 are exposed if an attacker can supply a query or can control text that the application inserts into a regular-expression pattern within a query.

2

What access does an attacker need to execute code?

The attacker needs control over a pattern used by test(), match(), or the match or =~ conditions of select(). A (?{ ... }) block in that pattern can execute arbitrary Perl code in the calling process.

3

Are escaped single quotes sufficient to prevent exploitation?

No. Although single quotes in the pattern are escaped, an attacker can place a Perl code block directly in the regular expression and does not need quotes.

4

What version addresses the issue?

Version 2.51 addresses the issue; versions before 2.51 are affected.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203