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

Fixed the high severity vulnerability (https://npmjs.com/advisories/830) #520

Closed

Conversation

miherlosev
Copy link

@miherlosev miherlosev commented Apr 30, 2019

Fixes #518, fixes #461, fixes #512, fixes #480

@thornjad
Copy link
Member

thornjad commented Apr 30, 2019

The failing tests may have to do with ecstatic's major version bump, @miherlosev could you check out ecstatic's changelog and see if we need to make any big changes?

@jfhbrook
Copy link
Contributor

You guys may want to find a new module, I don't plan on maintaining ecstatic going forward

I'm working on a proper announcement, but a little behind on the curve.

@thornjad
Copy link
Member

@jfhbrook thanks for the heads up! We'll still get up to the latest ecstatic for now, but I might start looking around then. Are you thinking of looking for maintainers, or more like stepping away entirely?

@thornjad thornjad added high priority Very important bug or security fix and removed feature:security labels Apr 30, 2019
@thornjad
Copy link
Member

I've been investigating a little, and it looks like this upgrade entirely breaks http-server, it won't serve anything, except for displaying the root directory listing. This may have something to do with mime types and/or charsets, but that's as far as I've gotten.

@jfhbrook
Copy link
Contributor

mimetype and charset handling got rewritten jfhbrook/node-ecstatic#240

@jonkoops
Copy link

jonkoops commented May 2, 2019

@jfhbrook Did you remove older versions of ecstatic? As it looks like it's been removed and now npx http-server . fails with the following error:

npm ERR! code ETARGET
npm ERR! notarget No matching version found for ecstatic@^3.0.0
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
npm ERR! notarget
npm ERR! notarget It was specified as a dependency of 'http-server'
npm ERR! notarget

@thornjad I believe this completely breaks http-server right now, any way I can help out?

edit I will move my discussion to the appropriate thread

@thornjad
Copy link
Member

thornjad commented May 2, 2019

@thornjad
Copy link
Member

thornjad commented May 2, 2019

@jonkoops the issue with this PR is that for some reason it causes http-server to simply not serve anything, but without throwing errors. I haven't had enough time to look at it, but so far I can't find the problem.

ecstatic's changelog is a good starting point, probably. It includes an upgrade to v2 of node-mime which may be an issue.

@thornjad
Copy link
Member

thornjad commented May 2, 2019

@BigBlueHat are you available? You may have a better perspective on this than me

@thornjad
Copy link
Member

thornjad commented May 2, 2019

@miherlosev because this is causing weird breaking changes, and because of #521, I'm going to close this PR and move your commit into a new branch to make it easier for others to help track down the breaking changes.

@thornjad thornjad closed this May 2, 2019
@thornjad thornjad mentioned this pull request May 2, 2019
@BigBlueHat
Copy link
Member

@BigBlueHat are you available? You may have a better perspective on this than me

Catching up, and will help how I'm able.

@thornjad
Copy link
Member

thornjad commented May 2, 2019

@BigBlueHat the immediate fire should be put out by jfhbrook/node-ecstatic#256, so this may at least be less important

@BigBlueHat
Copy link
Member

@thornjad the mime module changes specifically (though not exclusively) were part of the hold-up earlier with moving to newer versions of ecstatic. There were several major point releases across several modules and many of them shifted core APIs or deprecated/removed APIs this code depends on. Modern software development tail chasing, I guess...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help-wanted high priority Very important bug or security fix
Projects
None yet
5 participants