Skip to content
Heist/ feed
Unrated

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

Type: advisorySource: Official CVE List1 source record

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.

Announced Source revision 1
Original source ↗

CVE-2026-78497

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2026-78497

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "repo": "https://github.com/kawamurashingo/JQ-Lite",
    "modules": [
      "JQ::Lite"
    ],
    "versions": [
      {
        "status": "affected",
        "version": "0",
        "lessThan": "2.51",
        "versionType": "custom"
      }
    ],
    "packageURL": "pkg:cpan/JQ-Lite",
    "packageName": "JQ-Lite",
    "programFiles": [
      "lib/JQ/Lite/Util/Transform.pm"
    ],
    "collectionURL": "https://cpan.org/modules",
    "defaultStatus": "unaffected",
    "programRoutines": [
      {
        "name": "JQ::Lite::Util::_build_regex"
      }
    ]
  }
]
Related CVEs
CVE-2026-78497

Source reference: /cveMetadata/cveId

Publisher severity

No explicit severity was provided.

Event
#42483 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement