CPANSA-JQ-Lite-2026-78497: JQ-Lite vulnerability
| Publisher | giterlizzi | Document category | csaf_security_advisory |
|---|---|---|---|
| Initial release date | 2026-10-18T00:00:00 | Engine | CSAF Perl Toolkit 0.26 |
| Current release date | 2026-10-18T00:00:00 | Build Date | |
| Current version | 1 | Status | final |
| CVSS v3.1 Base Score | 8.4 | Severity | High |
| Original language | Language | en | |
| Also referred to | |||
Vulnerability Description
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.
Vulnerabilities
CVE-2026-78497
Vulnerability DescriptionJQ::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.
| Weakness | CWE-95 : Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection') |
|---|
Product status
Known affected
| Product | Score | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| JQ-Lite less than 2.51 |
|
Fixed
- JQ-Lite greater than or equal 2.51
giterlizzi
Namespace: https://github.com/giterlizzi/
gdt@cpan.org
References
- CPANSA-JQ-Lite-2026-78497 JSON self
https://raw.githubusercontent.com/giterlizzi/perl-CPANSA-CSAF/develop/csaf/white/2026/cpansa-jq-lite-2026-78497.json - https://github.com/kawamurashingo/JQ-Lite/commit/c461721ae3d5a90d6d94dbb234c1b8dfee5c1769.patch external
https://github.com/kawamurashingo/JQ-Lite/commit/c461721ae3d5a90d6d94dbb234c1b8dfee5c1769.patch - https://metacpan.org/release/SHINGO/JQ-Lite-2.51/changes external
https://metacpan.org/release/SHINGO/JQ-Lite-2.51/changes - http://www.openwall.com/lists/oss-security/2026/10/18/3 external
http://www.openwall.com/lists/oss-security/2026/10/18/3 - CVE-2026-78497 (NVD) external
https://nvd.nist.gov/vuln/detail/CVE-2026-78497
Revision history
| Version | Date of the revision | Summary of the revision |
|---|---|---|
| 1 | Sun Oct 18 00:00:00 2026 | First release |
Sharing rules
TLP:WHITE
For the TLP version see: https://www.first.org/tlp/