Skip to content
This repository has been archived by the owner on Oct 4, 2022. It is now read-only.

[Snyk] Security upgrade xml-encryption from 1.3.0 to 2.0.0 #6

Closed
wants to merge 68 commits into from

Conversation

snyk-bot
Copy link

Snyk has created this PR to fix one or more vulnerable packages in the `npm` dependencies of this project.

merge advice

Changes included in this PR

  • Changes to the following files to upgrade the vulnerable dependencies to a fixed version:
    • package.json

Vulnerabilities that will be fixed

With an upgrade:
Severity Priority Score (*) Issue Breaking Change Exploit Maturity
medium severity 658/1000
Why? Proof of Concept exploit, Recently disclosed, Has a fix available, CVSS 5.3
Open Redirect
SNYK-JS-NODEFORGE-2330875
Yes Proof of Concept
medium severity 601/1000
Why? Recently disclosed, Has a fix available, CVSS 6.3
Prototype Pollution
SNYK-JS-NODEFORGE-2331908
Yes No Known Exploit

(*) Note that the real score may have changed since the PR was raised.

Commit messages
Package name: xml-encryption The new version differs by 4 commits.

See the full diff

Check the changes in this PR to ensure they won't cause issues with your project.


Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.

For more information:
🧐 View latest project report

🛠 Adjust project settings

📚 Read more about Snyk's upgrade and patch logic

woloski and others added 30 commits August 27, 2012 03:04
Converts exception to error when calling getSamlRequestUrl with an empty identityProviderUrl
Revving the version to 3.0.6 for a patch release
* Added digest issue test

* bumped library

* remove github tag

* Changed tag
Removing the package-lock.json file
* Improve error message when the provided signing certificate is invalid

* Convert indentation to spaces
…h0#74)

* Added tests for the encoded XML value in an AttributeValue field

* Updated the xmldom dependency to point to a release tag.
auth0#77)

We used to parse `options.identityProviderUrl` assuming it was a string, which failed when it wasn't.

We'd fixed this in Samlp.getSamlRequestUrl(), but its siblings getSamlRequestParams() and getSamlRequestForm() were still susceptible.
3.0.11 Handle exception when signing a malformed requestTemplate
## ✏️ Changes

There is a situation in which the @@ VAR @@ can get goofed up and
contain strings that will include part of the template itself. This will
not parse correctly and throws an exception in the replace phase of the
regex matching. I've wrapped it in a try/catch to prevent it from
bringing the process down.

Noting that this area looks problematic as it was recently patched in auth0#88

Version bumped to `3.0.12`.

## 🔗 References

[Sentry Issue](https://sentry.io/auth0/auth0-server/issues/617753396/events/25564560312/)

## 🎯 Testing

✅ This change has unit test coverage
The `supplant` function will explode when a template is passed in this
manner, so this will return a corresponding error message when handing
the try/catch in this way.

If we add proper XML validation down the line, we can widen this out.
* add certificate expiration checking as an option (off by default) Drops Node4 support as well, though it was already failing on Node4 in master

changes per machuga comments

changes per machuga comments

remove separate supported-versions list for saml

* restore test we lost in bad squash

* change some vars to lets and camel to snake case in tests

* add test to ensure we can allow expired certs if we choose to

* remove unneeded comment from tests
Fady Makram and others added 27 commits June 14, 2019 06:54
* [Node 10] Update x509

* 4.0.0

* Update travis

* get rid of npm install
* remove cryptiles
* bump xml-encryption
* express upgrade
Use custom npm lib with custom versions of xmldom

Tag v0.1.19-auth0.2 is now version v0.1.22
chore(ci): configure Semantic Release publishing
chore: use npm i instead of npm ci
Addresses:
```
npm WARN deprecated xmldom@0.1.27: Deprecated due to CVE-2021-21366 resolved in 0.5.0
```
fix(pkg): upgrade xml-crypto to latest version
## [4.5.2](v4.5.1...v4.5.2) (2021-11-24)

### Bug Fixes

* **pkg:** upgrade xml-crypto to latest version ([5702273](5702273))
@labshare-svc labshare-svc deleted the snyk-fix-1cb9ead3efbb7f0d8338cee5a497dea6 branch August 30, 2022 06:40
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet