Repository navigation
What's Changed
This release strengthens the security and reliability of the NetLicensing PHP client. It addresses vulnerabilities in XML signature verification dependencies, improves offline license validation, fixes credential handling and Discount data submission, and adds comprehensive automated security tests. The client has also been tested with PHP 8.2, 8.3, 8.4, and 8.5.
Important: the client is not affected by the PHP core vulnerabilities CVE-2026-109618 and CVE-2026-109619 (PHP2Shell), but applications must update their PHP runtime to a patched version to address those vulnerabilities.
Key changes:
- Improved XML signature security by requiring robrichards/xmlseclibs 3.1.5, addressing known vulnerabilities in the library used to verify signed NetLicensing responses
- Replaced the unmaintained fr3d/xmldsig dependency with direct xmlseclibs integration, reducing maintenance overhead and eliminating an unnecessary SOAP extension requirement
- Offline license validation now returns the parsed data from correctly signed XML responses, including metadata
- Malformed XML and empty input in offline validation now produce clear MalformedArgumentsException errors instead of PHP warnings or runtime errors
- Anonymous API calls no longer reuse Authorization credentials from a previous authenticated request
- Corrected Discount data encoding in POST requests to ensure product discounts are submitted in the expected format
- Introduced comprehensive automated tests for XML signature verification, including invalid keys, tampered content, missing signatures, comment injection, malformed input, and XXE protection
- Upgraded PHPUnit from version 10 to 11 and enabled deprecation checks to catch issues in the client code
- Expanded CI coverage to PHP 8.5, moved CI to Ubuntu 24.04, and added Composer security auditing
- Added daily dependency installation checks on PHP 8.2 and 8.5
- Documented the PHP runtime security requirements to help users keep their deployments protected
Full Changelog: 2.6.0...2.7.0
Installation
$ composer require labs64/netlicensingclient-php
Usage
{
"require": {
"labs64/netlicensingclient-php": "^2.7.0"
}
}