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

High vulnerability #249

Closed
broerse opened this issue Oct 4, 2018 · 10 comments
Closed

High vulnerability #249

broerse opened this issue Oct 4, 2018 · 10 comments

Comments

@broerse
Copy link
Collaborator

broerse commented Oct 4, 2018

npm audit Gives me one high vulnerability coming from pouchdb-authentication.

High            Open Redirect
Package         url-parse
Patched in      >=1.4.3
Dependency of   pouchdb-authentication
Path            pouchdb-authentication > url-parse
More info       https://nodesecurity.io/advisories/678
@ptitjes
Copy link
Collaborator

ptitjes commented Oct 9, 2018

Later this week, I will update the dependencies to fix the many vulnerabilities.

@psolom
Copy link

psolom commented Oct 19, 2018

Looking forward

@dbugshe2
Copy link
Contributor

Hi, @ptitjes just checking, are we still on track for this fix. I'm really looking forward to this fix. cheers

@ptitjes
Copy link
Collaborator

ptitjes commented Nov 12, 2018

I tried to fix it some days ago. However the npm server was outputing errors while auditing. I'd be grateful if one of you would like to make a PR.

@dbugshe2
Copy link
Contributor

Thanks for clarifying. I'll give a try too and send a PR if it sticks.

@stanlemon
Copy link

Is it possible to get this pushed up to npm?

@ptitjes
Copy link
Collaborator

ptitjes commented Dec 18, 2018

@stanlemon Yep, I'll do a release this weekend.

@Didericis
Copy link

Didericis commented Jan 24, 2020

UPDATE: I thought this fix was released, but looks like it hasn't made it onto NPM yet. The latest version as of this writing (v1.1.3) doesn't include the fix from this PR. Adding the latest commit directly from github to my package.json didn't solve the issue, either, as the lib isn't included in the package.json. I found a fork (https://github.com/silverbackdan/pouchdb-authentication) that allows for installing the latest version. Below worked for me:

"pouchdb-authentication": "git+https://github.com/silverbackdan/pouchdb-authentication.git#c6e903693c1f"

I'm still getting a security warning, despite the update: my package-lock.json thinks pouchdb-authentication requires url-parse version 1.2.0. This is what the pouchdb-authentication section of my package-lock.json looks like:

    "pouchdb-authentication": {
      "version": "1.1.3",
      "resolved": "https://registry.npmjs.org/pouchdb-authentication/-/pouchdb-authentication-1.1.3.tgz",
      "integrity": "sha512-xzxmqAK6+rtJlVcFwebLBDlY0dDD5aqEb+bT0xStFp3s6HPC1QEa9C1NzkBScNBb8UG2BygTrVRMJzJLTR2LrA==",
      "requires": {
        "inherits": "2.0.3",
        "pouchdb-ajax": "~6.4.0",
        "pouchdb-binary-utils": "~6.4.0",
        "pouchdb-promise": "~6.4.0",
        "pouchdb-utils": "~6.4.0",
        "url-join": "4.0.0",
        "url-parse": "1.2.0"
      }
    },

@SinanGabel
Copy link

Some of the other libraries - and the code using these - probably also need an upgrade/change e.g.
pouchdb-ajax
pouchdb-promise
pouchdb-utils

@uaru
Copy link

uaru commented Jan 7, 2021

Maybe this is because the version number in package.json in master needs to be bumped to 1.1.4? Because now it lists dependency on url-parse 1.4.3, but the version of pouchdb is still 1.1.3, and that release still requires 1.2.0.

Of course there is workaround of installing from GitHub, but it should go to NPM...

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

No branches or pull requests

8 participants