Skip to content

[stable34] build(deps): Bump phpseclib/phpseclib from 4.0.3 to 4.0.4 - #9752

Merged
vitormattos merged 1 commit into
stable34from
dependabot/composer/stable34/phpseclib/phpseclib-4.0.4
Nov 29, 2026
Merged

vitormattos merged 1 commit into
stable34from
dependabot/composer/stable34/phpseclib/phpseclib-4.0.4

Conversation

@librecode-workflow-automation

Copy link
Copy Markdown
Contributor
Prod Packages Operation Base Target Link
paragonie/constant_time_encoding Upgraded v3.1.4 v3.1.5 Compare
phpseclib/phpseclib Upgraded 4.0.3 4.0.4 Compare

Signed-off-by: librecode-workflow-automation[bot] <331658022+librecode-workflow-automation[bot]@users.noreply.github.com>
@librecode-workflow-automation
librecode-workflow-automation Bot requested a review from a team as a code owner November 29, 2026 19:54
@github-actions github-actions Bot changed the title build(deps): Bump phpseclib/phpseclib from 4.0.3 to 4.0.4 [stable34] build(deps): Bump phpseclib/phpseclib from 4.0.3 to 4.0.4 Nov 29, 2026
@coderabbitai

coderabbitai Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Summary

Updates the 3rdparty submodule pointer in one file (+1/-1). The submodule contents are not part of this diff, so the change cannot be checked here.

Stated intent: upgrade phpseclib/phpseclib from 4.0.3 to 4.0.4 and paragonie/constant_time_encoding from v3.1.4 to v3.1.5. The diff does not show these versions.

No API or public declaration changes are visible in this diff. No tests or CI results were available.

Changes: 3rdparty Reference

Layer / File(s) Summary
Update subproject commit
3rdparty
The recorded subproject commit changed to 0e768b472c70e10da020c182a69df1232f27a096.

Suggested reviewers: vitormattos

Change: Other

Merge Risk: Low · up to 7d40b

This updates two patch-level cryptography dependencies in the bundled third-party code. No concrete defect was found in how the application uses them. Run the usual signing and validation tests before merging.

Architecture risk: Low · up to 7d40b

The change affects 1 source area.

Changed areas: 3rdparty

Review details

Systems and components

  • observed — 1 changed file mapped to 3rdparty.
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI (base), Organization UI (inherited)
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 1e1f69a4-b008-4967-9fd0-2b6bbe7f88d6
Commits

Reviewing files that changed from the base of the PR and between 2597f62 and 7d40b00.

Files selected for processing: 1

  • 3rdparty
Linked repositories identified

CodeRabbit considers these linked repositories for cross-repo context during reviews:

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

Recent review details

Context from checks skipped due to timeout: 17

  • GitHub Check: php-lint-summary
  • GitHub Check: SQLite PHP PHP 8.5 Nextcloud stable34
  • GitHub Check: MariaDB 11.4 PHP 8.5 Nextcloud stable34
  • GitHub Check: MariaDB 10.6 PHP 8.5 Nextcloud stable34
  • GitHub Check: CodeRabbit
  • GitHub Check: SQLite PHP 8.5 Nextcloud stable34
  • GitHub Check: MySQL 8.4 PHP 8.4 Nextcloud stable34
  • GitHub Check: MySQL 8.4 PHP 8.2 Nextcloud stable34
  • GitHub Check: MySQL 8.4 PHP 8.5 Nextcloud stable34
  • GitHub Check: MySQL 8.4 PHP 8.3 Nextcloud stable34
  • GitHub Check: PostgreSQL PHP 8.5 Nextcloud stable34
  • GitHub Check: PostgreSQL PHP PHP 8.5 Nextcloud stable34
  • GitHub Check: MariaDB 10.6 PHP 8.5 Nextcloud stable34
  • GitHub Check: MariaDB 10.11 PHP 8.5 Nextcloud stable34
  • GitHub Check: MySQL 8.1 PHP 8.5 Nextcloud stable34
  • GitHub Check: static-psalm-analysis
  • GitHub Check: openapi
Additional context used

Code guidelines: 3

3 cross-repository guideline sources
Path-based instructions: 3

Source excerpt: Prefer named independent cases for inputs that share the **same** setup, action, contract and expectation.

CodeRabbit inference engine

Files:

  • 3rdparty
Source excerpt: Tests are also code to review.

CodeRabbit inference engine

Files:

  • 3rdparty
Source excerpt: For integration tests changing persistent state, snapshot only the relevant pre-test values and restore them in a reliable teardown/finally path; preserve absent-vs-empty and types.

CodeRabbit inference engine

Files:

  • 3rdparty
Multi-repo context LibreSign/3rdparty, LibreSign/pdf-signature-validator

Linked repositories findings

LibreSign/3rdparty (inspected at the PR #179 ref, detached HEAD 0e768b4 "chore(autoloader): Regenerate scoped dependencies")

Version pins in the root Composer files:

  • The root manifest requires "phpseclib/phpseclib": "^4.0" [::LibreSign/3rdparty::composer.json:47].
  • The root composer.lock pins phpseclib/phpseclib 4.0.4 (commit 44303c95) and paragonie/constant_time_encoding v3.1.5 (commit ceed38ba). The script output did not include line numbers for these entries.
  • Both package versions satisfy their declared constraints. phpseclib 4.0.4 requires paragonie/constant_time_encoding ^2|^3, php >=8.1, and symfony/polyfill-php82 ^1.26. constant_time_encoding v3.1.5 requires php ^8.

Scoped vendored phpseclib:

  • The vendored phpseclib package's composer.json declares its scoped autoload namespace as OCA\Libresign\Vendor\phpseclib4\ [::LibreSign/3rdparty::composer/phpseclib/phpseclib/composer.json:79] and its tests namespace [::LibreSign/3rdparty::composer/phpseclib/phpseclib/composer.json:84].
  • It requires paragonie/constant_time_encoding ^2|^3 [::LibreSign/3rdparty::composer/phpseclib/phpseclib/composer.json:60], which v3.1.5 satisfies.
  • I did not inspect the scoping configuration, so I cannot confirm how the phpseclib4\ imports in the validator source map to the scoped namespace.

Possible inconsistency in the nested validator copy:

  • The nested copy at composer/libresign/pdf-signature-validator/composer.lock still pins phpseclib 4.0.3 (commit 6077cec) and constant_time_encoding v3.1.4 (commit 5efef6e). This PR's root lock moves both forward, but this nested lock was not changed in the inspected ref.
  • Whether this matters depends on whether that nested lock is used in the build. I did not verify that.

Default-branch status: I did not check the default branch, so I cannot say when these versions reach it.

LibreSign/pdf-signature-validator (default checkout)

Dependency declaration and lock:

  • The validator requires "phpseclib/phpseclib": "^4.0" [::LibreSign/pdf-signature-validator::composer.json:14].
  • Its composer.lock pins phpseclib 4.0.4 (commit 44303c95, source tag 4.0.4 at line 176) [::LibreSign/pdf-signature-validator::composer.lock:79-93] and constant_time_encoding v3.1.5 (commit ceed38ba) [::LibreSign/pdf-signature-validator::composer.lock:10-19]. The lock already matches the 3rdparty root lock.
  • Line 1021 of the same lock contains the constraint string "phpseclib/phpseclib": "<2.0.53|>=3,<3.0.51" [::LibreSign/pdf-signature-validator::composer.lock:1021]. I did not read the surrounding block, so I cannot say what it refers to.

Consumers of the phpseclib API (all import phpseclib4\ namespaces):

  • ASN.1 and CMS parsing:
    • src/Parser/CertificateSubjectExtractor.php:10 (File\ASN1)
    • src/Parser/SignatureValidator.php:13 (File\CMS\SignedData)
    • src/Parser/Asn1NodeReader.php:10-13 (Exception\UnexpectedValueException, File\ASN1, ASN1\Constructed, ASN1\Types\BaseType)
    • src/Parser/CmsHashAlgorithmExtractor.php:10-12 (File\ASN1, Types\OID, CMS\SignedData)
    • src/Parser/CmsTimestampExtractor.php:11-13 (Exception\UnexpectedValueException, File\ASN1, ASN1\Constructed)
    • src/Parser/TstInfoParser.php:12-14 (Exception\UnexpectedValueException, File\ASN1, Math\BigInteger)
  • Tests: tests/Unit/Parser/CmsTimestampExtractorTest.php:12-13 (File\ASN1, ASN1\Element).

These imports cover the signature extraction and timestamp (TSTInfo) parsing paths. A phpseclib 4.0.3→4.0.4 patch bump is unlikely to change these APIs, but this review did not compare the two releases' source, so that remains unverified.

LibreSign/pdf-elements, LibreSign/xobject-template, LibreSign/documentation

  • A repository-wide search for phpseclib and constant_time_encoding returned no matches in any of the three repositories. This does not prove the absence of references that are generated or dynamically loaded, but nothing in these repositories depends on the changed packages as far as the search shows.
Additional comments: 2

3rdparty: 2

1-1: Data Integrity & Integration

The comment's question has no supported answer. Inspected LibreSign code does not call SignedData::toArray(true) on a signed-data object whose certificates would be converted. The one primitive-conversion call in LibreSign operates on a different receiver, and the validator uses toArray() without the flag. No caller was found that expects certificate strings, so the claimed compatibility risk has no consumer. The change to Choice::toArray() may still differ from earlier releases, but the supplied evidence does not establish the old behavior.

1-1: Functional Correctness

The reused-instance path in ChaCha20.php can keep a stale Poly1305 key across setNonce() for eight-byte nonces. Whether LibreSign hits this path, and whether the submodule update introduced it, could not be decided. The caller search output and the createPoly1305Key definition were not returned, and the prior revision was not compared.

@vitormattos
vitormattos merged commit 54eb649 into stable34 Nov 29, 2026
66 checks passed
@vitormattos
vitormattos deleted the dependabot/composer/stable34/phpseclib/phpseclib-4.0.4 branch November 29, 2026 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant