Dist::Zilla::Plugin::Test::CVE - add tests for known CVEs
In the dist.ini
:
[Test::CVE]
filename = xt/author/cve.t
author = 1
deps = 1
core = 1
perl = 0
This is a Dist::Zilla plugin to add Test::CVE author tests to a distribution for known CVEs.
Note that this module is experimental. See "SECURITY CONSIDERATIONS".
Changes for version v0.1.3 (2025-08-19)
- Documentation
- Fixed typos.
See the Changes
file for more details.
This module lists the following modules as runtime dependencies:
- Data::Dumper::Concise
- Data::Section version 0.004 or later
- Dist::Zilla
- Moose
- PerlX::Maybe
- Sub::Exporter::ForMethods
- Test::CVE version 0.10 or later
- Types::Common
- experimental
- namespace::autoclean
- perl version v5.20.0 or later
See the cpanfile
file for the full list of prerequisites.
The latest version of this module (along with any dependencies) can be installed from CPAN with the cpan
tool that is included with Perl:
cpan Dist::Zilla::Plugin::Test::CVE
You can also extract the distribution archive and install this module (along with any dependencies):
cpan .
You can also install this module manually using the following commands:
perl Makefile.PL
make
make test
make install
If you are working with the source repository, then it may not have a Makefile.PL
file. But you can use the Dist::Zilla tool in anger to build and install this module:
dzil build
dzil test
dzil install --install-command="cpan ."
For more information, see How to install CPAN modules.
This will only identify known CVEs in listed dependencies. It may not identify CVEs in undeclared prerequisites or deep prerequisites.
The results from running Test::CVE on a CPAN distribution may or may not be useful.
If there is a fix available for a CVE, then authors can update the minimum version of that prerequisite.
If there is no fix, then authors may have no choice but to add the issue to the skip
list.
There is the risk that authors will forget about skipped security issues if they remain unfixed for a long time.
There is also a risk that authors may add issues to the skip
list if this test blocks a release,
and then forget to remove the issue when a fix is released.
Only the latest version of this module will be supported.
This module requires Perl v5.20 or later. Future releases may only support Perl versions released in the last ten years.
Please report any bugs or feature requests on the bugtracker website https://github.com/robrwo/perl-Dist-Zilla-Plugin-Test-CVE/issues
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
If the bug you are reporting has security implications which make it inappropriate to send to a public issue tracker,
then see SECURITY.md
for instructions how to report security vulnerabilities.
The development version is on github at https://github.com/robrwo/perl-Dist-Zilla-Plugin-Test-CVE and may be cloned from git://github.com/robrwo/perl-Dist-Zilla-Plugin-Test-CVE.git
Robert Rothenberg rrwo@cpan.org
This software is copyright (c) 2025 by Robert Rothenberg.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.