Skip to content

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

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

vitormattos merged 1 commit into
stable33from
dependabot/composer/stable33/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:55
@github-actions github-actions Bot changed the title build(deps): Bump phpseclib/phpseclib from 4.0.3 to 4.0.4 [stable33] 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

This PR updates the 3rdparty submodule pointer from 4f1253d3 to cd9a5bb3. The diff changes one file (1 line added, 1 removed). No public declarations change.

Per the PR objectives, the submodule update upgrades phpseclib/phpseclib from 4.0.3 to 4.0.4 and paragonie/constant_time_encoding from v3.1.4 to v3.1.5. The package versions are not verified here, because the submodule contents are not in this diff. No tests or CI results were available.

Changes: 3rdparty Reference Update

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

Suggested reviewers: vitormattos

Change: Other

Merge Risk: Minimal · up to 5bbae

This updates bundled third-party crypto libraries to patch releases. No concrete problem was identified, so merge risk is minimal. Normal CI should still confirm signing and validation behavior.

Architecture risk: Low · up to 5bbae

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: b12292a3-39f9-46a6-b246-684b017cd9be
Commits

Reviewing files that changed from the base of the PR and between 005aff9 and 5bbae1f.

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; 8 remain after this review.

Recent review details

Context from checks skipped due to timeout: 20

  • GitHub Check: PostgreSQL PHP 8.5 Nextcloud stable33
  • GitHub Check: eslint
  • GitHub Check: test-summary
  • GitHub Check: CodeRabbit
  • GitHub Check: changes
  • GitHub Check: matrix
  • GitHub Check: info.xml lint
  • GitHub Check: matrix
  • GitHub Check: Block unconventional commits
  • GitHub Check: openapi
  • GitHub Check: changes
  • GitHub Check: stylelint
  • GitHub Check: matrix
  • GitHub Check: matrix
  • GitHub Check: matrix
  • GitHub Check: static-psalm-analysis
  • GitHub Check: changes
  • GitHub Check: changes
  • GitHub Check: matrix
  • GitHub Check: php-cs
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

Linked repositories findings

LibreSign/3rdparty (inspected ref: PR #178 checkout, detached HEAD at cd9a5bb)

Bumped versions in the root manifest and lock:

  • composer.json requires "phpseclib/phpseclib": "^4.0" [::LibreSign/3rdparty::composer.json:47]. This constraint accepts both 4.0.3 and 4.0.4.
  • The root composer.lock pins phpseclib/phpseclib at 4.0.4, source tree/4.0.4, zipball 44303c95a83b6071229cdea56cdcd52712730476 [::LibreSign/3rdparty::composer.lock:1006-1015] [::LibreSign/3rdparty::composer.lock:1103].
  • Its paragonie/constant_time_encoding entry is v3.1.5 at ceed38ba49d98b85808edfc4f04750ff61eb9739 [::LibreSign/3rdparty::composer.lock:887-896].
  • phpseclib requires "paragonie/constant_time_encoding": "^2|^3" [::LibreSign/3rdparty::composer.lock:1020]. v3.1.5 satisfies this.

Nested snapshot still at the older phpseclib pin:

  • composer/libresign/pdf-signature-validator/composer.lock pins phpseclib at zipball 6077cecfed9e371993d3aa339b0afeb23f7bf636 and source tree/4.0.3 [::LibreSign/3rdparty::composer/libresign/pdf-signature-validator/composer.lock:79-88] [::LibreSign/3rdparty::composer/libresign/pdf-signature-validator/composer.lock:176]. This differs from the root lock's 4.0.4. The inspected ref does not show whether this nested copy is regenerated or intentionally left at 4.0.3.

Scoped namespace handling:

  • scoper.inc.php contains phpseclib-specific patchers that rewrite phpseclib4\ references to the scoped prefix, including dynamic class-name strings [::LibreSign/3rdparty::scoper.inc.php:97-122]. Any change in phpseclib's string-based class references would need these patchers to still match.
  • The generated composer/composer/autoload_psr4.php maps OCA\Libresign\Vendor\phpseclib4\ to the vendored phpseclib path [::LibreSign/3rdparty::composer/composer/autoload_psr4.php:8]. This is generated output. I did not edit it, and it should be regenerated rather than changed by hand.

LibreSign/pdf-signature-validator (default checkout)

Consumers of phpseclib4 in src/:

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

These are the ASN.1, CMS, and BigInteger APIs that signature extraction and validation depend on. A regression in phpseclib's ASN.1 or CMS parsing for malformed or tampered inputs would reach the validator's trust decisions through these classes.

Manifest and lock state:

  • composer.json:14 requires "phpseclib/phpseclib": "^4.0".
  • composer.lock:88 and composer.lock:176 pin phpseclib to zipball 44303c95… and tag 4.0.4. This matches the 3rdparty root lock.
  • composer.lock:19 pins constant_time_encoding to ceed38ba…, which matches the 3rdparty root lock.
  • No direct source use of ParagonIE\ConstantTime was found in src/. The only ParagonIE hit is the autoload entry at composer.lock:35.

Not checked

  • The upstream changelogs for phpseclib 4.0.3→4.0.4 and constant_time_encoding v3.1.4→v3.1.5 were not inspected, so I cannot say whether either release changes ASN.1, CMS, or encoding behavior.
  • The built, scoped artifact was not inspected. Only the source tree and generated autoload metadata were.
  • pdf-elements, xobject-template, and documentation were not searched. Nothing in this dependency bump suggested they consume phpseclib or constant_time_encoding.

@vitormattos
vitormattos merged commit 7ea406d into stable33 Nov 29, 2026
66 checks passed
@vitormattos
vitormattos deleted the dependabot/composer/stable33/phpseclib/phpseclib-4.0.4 branch November 29, 2026 20:21
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