Install
Works with Drupal: ^10.3 || ^11Using Composer to manage Drupal site dependencies
Alternative installation files
Download tar.gz
81.28 KB
MD5: 7179ca782af7709057d4ccb61ea440a6
SHA-1: ca8c225d33e4aa7db54273db3178371d4eec0916
SHA-256: 3eb68e0286941cfeda403871f885ffc14bb7403fb971df8f8c9c6dedd437c6b1
Download zip
128.43 KB
MD5: 7e3e735275b72e16851d4976f0816ae1
SHA-1: 8718de3abb145c572d32d93a2f032f0e9633d170
SHA-256: 622bdc9ceb4ed6ca05fa0bdf9c383a1904bc164d7e4327ffde14ccc91263273b
Release notes
The pattern checks and the deep taint pass now work as one system. Built for drupal-security/scanner 1.1, which fixed the engine's taint model (1.0.0 missed command injection). Full details are in CHANGELOG.md.
Upgrading
- Update the engine too:
composer require --dev "drupal-security/scanner:^1.1". The report now warns when an outdated engine runs. Engine 1.1 requires this module at 1.2 or later, so Composer upgrades them together. - The JSON output gains
psalm_engine_versionand a per-findingevidencekey. Existing keys are unchanged.
New
- Findings both tiers agree on are confirmed. When a pattern check and the deep pass point at the same code, they are reported once, marked [confirmed by data flow], with the source-to-sink path and the higher severity. Review these first.
--changed-since=<ref>reports only what a branch changed, for pull-request pipelines, while still following flows through unchanged code.- Severity follows the source. A flow from admin-only configuration or state is informational, in line with Drupal's security policy.
- Engine version check, and documentation for installing the engine separately on sites that use another Psalm version.
Fixed
- A deep-pass finding on
unserialize()that forbids objects (allowed_classes => FALSE) is no longer reported. - Redirects are recognised from either engine version and reported as open redirects.
Security
- The deep pass runs with a 2 GB memory cap, and every git command the scanner runs disables
core.fsmonitor; user-supplied git references are validated.