Security Advisories (1)
CVE-2026-13766 (2026-06-30)

DBIx::QuickORM versions before 0.000026 for Perl allow SQL injection via unquoted SQL identifiers. The default SQL builder, a SQL::Abstract subclass, sets bindtype in its constructor but never quote_char, so SQL::Abstract emits identifiers verbatim. Caller-supplied identifiers (order_by, where-clause column keys, field and returning lists, upsert columns, and join aliases) reach the SQL string raw, while values are placeholder-bound and unaffected. A caller that forwards untrusted input to an affected identifier position, such as a user-controlled order_by value, enables SQL injection: the row order can be made to depend on a sub-select over columns the query never selected, and the where and update identifier positions permit further data disclosure and tampering.

NAME

DBIx::QuickORM::Iterator - Lazy, caching iterator over a generator.

DESCRIPTION

Wraps a generator coderef that yields one item per call and returns undef when exhausted. Items are pulled on demand and cached, so the iterator can be walked, reset, and re-walked. An optional readiness coderef supports async result checks.

SYNOPSIS

my $iter = DBIx::QuickORM::Iterator->new(\&generator, \&ready);

while (defined(my $item = $iter->next)) { ... }

my @all = $iter->list;

ATTRIBUTES

generator

Coderef yielding one item per call, undef when exhausted.

items

Arrayref of items pulled from the generator so far.

generator_done

True once the generator has signalled exhaustion.

index

Current position for next.

ready

Optional coderef returning true once results are available.

PUBLIC METHODS

$item = $iter->next

Return the next item and advance, or undef when exhausted.

$item = $iter->first

Reset to the start and return the first item.

$item = $iter->last

Exhaust the generator and return the last item (or undef if none).

@items = $iter->list

Exhaust the generator and return every item.

$bool = $iter->ready

True when results are available. Always true unless a readiness coderef was supplied.

SOURCE

The source code repository for DBIx::QuickORM can be found at https://github.com/exodist/DBIx-QuickORM.

MAINTAINERS

Chad Granum <exodist@cpan.org>

AUTHORS

Chad Granum <exodist@cpan.org>

COPYRIGHT

Copyright Chad Granum <exodist7@gmail.com>.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

See https://dev.perl.org/licenses/