Distro advisory · Fedora 45
perl-Text-JSContact-0.07-1.fc45
Fedora 45
What it fixes
Changes:
0.07 2026-11-10
- security: a vCard nested more than 16 deep is refused before
Text::VCardFast sees it (its parser recurses in C once per BEGIN:
tens of thousands of levels killed the process)
- a backslash in a parameter value is dropped: RFC 6350 gives it no
meaning there, but Text::VCardFast reads \; \: \" as escapes, and a
SORT-AS or TZ ending in one made the card unreadable
- add t/hostile.t
- patching a card with a large folded property (a PHOTO) is several
times faster: its lines are split with one match per logical line
0.06 2026-11-07
- writing is deterministic: the same Card gives the same bytes in
every process. Text::VCardFast's hash2vcard wrote parameters in
Perl's hash order, so every save of an unchanged contact had a new
CardDAV ETag. The module now writes content lines itself, with
parameters in a fixed order (PROP-ID, VALUE, TYPE, PREF, then by
name), folded at 75 octets without splitting a character or an
escape; Text::VCardFast is still the parser
- add t/deterministic.t
- a conversion keeps its counters in a context made for that call,
not in package variables. An id allocated to a property without
PROP-ID skips every PROP-ID the vCard has, so EMAIL;PROP-ID=1 and
an unnumbered EMAIL no longer both become emails{1}, one lost.
A label group allocated by patch_vcard skips every group the
original vCard has, so a new label no longer takes item1 from a
property that already has one
- patch_vcard patches the original line by line instead of
re-serialising the whole vCard: a line for an entry the change does
not touch keeps its bytes, group, folding and place, as does every
line JSContact cannot represent. A changed entry is written over
its own line, keeping its…
Manual fix · Fedora 45
sudo dnf upgrade perl-Text-JSContact perl-Text-JSContact-testsrpm -q perl-Text-JSContact perl-Text-JSContact-testsSources