Skip to content

deps: update robrichards/xmlseclibs requirement from ^3.1.5 to ^3.1.5 || ^4.0.0 - #19

Merged
r-brown merged 1 commit into
masterfrom
dependabot/composer/robrichards/xmlseclibs-tw-3.1.5or-tw-4.0.0
Oct 26, 2026
Merged

r-brown merged 1 commit into
masterfrom
dependabot/composer/robrichards/xmlseclibs-tw-3.1.5or-tw-4.0.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Oct 26, 2026

Copy link
Copy Markdown
Contributor

Updates the requirements on robrichards/xmlseclibs to permit the latest version.

Release notes

Sourced from robrichards/xmlseclibs's releases.

4.0.1

Harden HMAC key loading so asymmetric material cannot be used as an HMAC secret. The same check applies when signing or verifying. Ordinary HMAC secrets still load.

Changelog

Sourced from robrichards/xmlseclibs's changelog.

xmlseclibs.php ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| 19, Oct 2026, 4.0.1 Security Improvements:

  • Harden HMAC key loading so asymmetric material cannot be used as an HMAC secret. The same check applies when signing or verifying. Ordinary HMAC secrets still load.

||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| 22, Aug 2026, 4.0.0 Features:

  • Add reference option omit_uri to skip adding a URI attribute on Reference (also skips Id assignment on the referenced element, which exists only to support the URI fragment)
  • Change selected XMLSecurityDSig private properties and methods to protected so the class can be extended (gdespirito). refs #152
  • Add XMLSecurityDSig::ENVELOPED constant for the enveloped-signature Transform URI; deprecate empty appendCert() stub (use add509Cert())

Security Improvements:

  • Harden add509Cert() URL fetching against SSRF: only http/https by default (file:// requires options['allow_file_scheme']); resolve the host and reject loopback/private/link-local/reserved/CGNAT addresses; disable HTTP redirects
  • Reject IPv4-mapped / IPv4-compatible IPv6 certificate URL hosts (e.g. ::ffff:127.0.0.1, ::ffff:169.254.169.254): unwrap the embedded IPv4 and apply the same private/reserved/CGNAT checks (PHP's FILTER_FLAG_NO_* treats mapped addresses as public)
  • Fail closed on unknown Reference Transform algorithms; recognize enveloped-signature explicitly. validateReference() no longer always detaches the Signature from the caller DOM (that broke C14N of ds:Object targets and left half-mutated trees on failure); enveloped-signature removes Signature only when it is a proper descendant of the node being digested
  • Tighten same-document Reference URIs to empty URI and "#id" only (reject "?query", bare "#", and external URIs); share parsing between processRefNode() and getRefNodeID(). Same-document refs always omit comments
  • Reject hostile idKeys attribute names (no whitespace / XPath operators) via Utils\XPath::filterAttrName; invalid names throw
  • Reject duplicate CanonicalizationMethod / SignatureMethod under SignedInfo and duplicate DigestMethod / DigestValue / SignatureValue during verify
  • Reset the cached DOMXPath in locateSignature() so instance reuse across documents cannot fatal with "Node from wrong document"
  • verifyDocument() no longer permanently overwrites instance algorithm allowlists (restored in finally)
  • addReference() / addReferenceList() / sign() / add509Cert() throw instead of silently no-oping when SignedInfo / signature context is missing; sign() requires setCanonicalMethod() and a SignatureMethod element
  • Require correct namespace URIs for InclusiveNamespaces (exc-c14n) and XPath transform children (not localName alone)
  • Reject a DOCTYPE in decrypted XML (defense against entity-expansion / XXE in attacker-crafted encrypted content)

... (truncated)

Commits

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Updates the requirements on [robrichards/xmlseclibs](https://github.com/robrichards/xmlseclibs) to permit the latest version.
- [Release notes](https://github.com/robrichards/xmlseclibs/releases)
- [Changelog](https://github.com/robrichards/xmlseclibs/blob/master/CHANGELOG.txt)
- [Commits](robrichards/xmlseclibs@3.1.5...4.0.1)

---
updated-dependencies:
- dependency-name: robrichards/xmlseclibs
  dependency-version: 4.0.1
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file php Pull requests that update php code labels Oct 26, 2026
@r-brown
r-brown merged commit e691570 into master Oct 26, 2026
5 checks passed
@r-brown
r-brown deleted the dependabot/composer/robrichards/xmlseclibs-tw-3.1.5or-tw-4.0.0 branch October 26, 2026 05:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file php Pull requests that update php code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant