Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Dependency on vulnerable version of xml-encryption #556

Closed
mhassan1 opened this issue Mar 16, 2021 · 8 comments
Closed

[BUG] Dependency on vulnerable version of xml-encryption #556

mhassan1 opened this issue Mar 16, 2021 · 8 comments
Labels

Comments

@mhassan1
Copy link
Contributor

mhassan1 commented Mar 16, 2021

This package has an exact dependency on xml-encryption@1.2.1:

"xml-encryption": "1.2.1",

xml-encryption@1.2.1 has a dependency on xmldom@~0.1.15, which has an XXE vulnerability that has been patched in xmldom@>=0.5.0: https://github.com/auth0/node-xml-encryption/blob/9b6df94b0ea30ff7ff836c5e3bf8b328c6a69175/package.json#L25

This package should bump its dependency to xml-encryption@1.2.3 or higher.

@forty
Copy link
Contributor

forty commented Mar 16, 2021

Ah good point, I did not realize that the caret was missing. That said, xml-encryption has not released an update on npm (1.2.2 was released one month ago). I opened an issue to them.

@cjbarth
Copy link
Collaborator

cjbarth commented Mar 16, 2021

It appears that v1.2.2 has been released on npm now.

@forty
Copy link
Contributor

forty commented Mar 16, 2021

Yes but we need 1.2.3, which doesn't exist yet :( see auth0/node-xml-encryption#82

@jupenur
Copy link

jupenur commented Mar 18, 2021

xml-encryption@1.2.1 has a dependency on xmldom@~0.1.15, which has an XXE vulnerability

Author of the original xmldom advisory here. The vulnerability has nothing to do with XXE. The advisory on Snyk is wrong, I don't know where they got it from. The actual vulnerability does not affect xml-encryption.

@christian-hawk
Copy link

@jupenur thanks for the info regarding CVE-2021-21366

Can you provide a (link to?) more technical explanation?

I see that Github is the Assigning CNA. Did github repplied to your false positive report?

Thanks

@christian-hawk
Copy link

btw xml-encryption released 1.2.3 4 hours ago @forty : https://github.com/auth0/node-xml-encryption/releases/tag/v1.2.3

@jupenur
Copy link

jupenur commented Mar 18, 2021

@christian-hawk the vulnerability itself is real and not a false positive, it's just that it doesn't affect all downstream applications in the same way. GitHub is only involved as the assigning party for the CVE, but there's nothing to correct on the CVE either. The information on the CVE (on the MITRE website, on NVD etc.) is accurate, as is the information on the original advisory here. But the information on Snyk is incorrect and not based on anything other than their own speculation as far as I can tell.

In terms of technical details, currently I don't have anything to share beyond what's in the original advisory.

@cjbarth
Copy link
Collaborator

cjbarth commented Mar 19, 2021

Closed by #566 and #567

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants