-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Build deps have security issues #1369
Comments
Thanks, we'll look into it at some point! Just a note though, these are all build dependency, we don't depend on anything at runtime, so users are safe :-) |
@isagalaev, thanks! Updated the title so not to scare anyone. |
Oh, that's thoughtful of you, thanks! |
@marcoscaceres, how are you get this report? I've tried to check hljs here and get "No known vulnerabilities found". |
@Sannis, if I recall correctly, I got it from cloning: https://github.com/w3c/respec/ And then running |
@Sannis you might need to "npm install" first, but not sure... might just work without. |
Going through all the dependencies listed, it looks like most are from the build library we are using gear.js -- which is pretty much a dead project.
I've been thinking about rewriting the build system because I was pretty much the only one that knew how to modify it and the documentation for gear.js isn't that great. Now that we have security issues it might be the extra push to actually get started on this. I don't want to bother with other build systems that have been coming out because our build process is complex enough that the style these build library have don't really compliment our build process and I will end up working against them in the long run. I'll layout my ideas more cleanly in a seperate issue before actually starting the build script rewrite so @isagalaev, @Sannis, and myself can actually have a better comprehension of our new build script. I'll claim responsible of this issue, so thank you @marcoscaceres for reporting this. |
Jeremy thanks for weighing in on that! One immediate note from me regarding this:
It's also a good opportunity to re-think if we need it to be this complex these days. The Internet is different, and old assumption may not hold up anymore. I don't have anything concrete right now, but I want to signal that nothing is set in stone regarding it. |
@sourrust @isagalaev, this is really exciting to hear! please cc me on that bug. I have a few suggestions to simplify things - and would like to show you our current set up (as it shows the issues with the current build system when used with another project). |
To comment on the build process being simplified, being able to use the system as-is in addition to building a package would be pretty ideal for debugging/development, I think. Right now, since I want to be able to debug things easily (also since it's GitHub pages...), I edited the lang files I needed to register inline and just include everything via script/src or jQuery loading. It works, it just feels unnecessary. I'm sure there's a good design that would allow for both models. :] |
This raised its head again today, with several upstream vulnerabilities. |
I have a project template I generate with (so I can’t have a package-lock file). This started killing my CI today. |
We could really use some help with this. We need to get rid of gear, but it’s a fair amount of work. |
How about forking gear to update its dependencies? |
Worth a shot. The project is dead, so it’s not like it risks getting out of sync. |
Seems that the project has literally been deleted from Github... it used to be hosted by Yahoo. |
The main developer forked the project and it's now here: https://github.com/twobit/gear |
Nice find @saschanaz! I've forked it here: https://github.com/highlightjs/gear Do you think you have time to poke at it? Might just be a matter of updating some of the really bad ones. |
👋 just saying hi, one of the many people who followed their npm audit trail to this issue today. A quick question, though... if the |
@zackzachariah, it's a good suggestion but |
👍 Ok, makes complete sense. I'll let you focus on your work then and just keep lurking so I know when to ping the various packages in the dependency chain between us to update. |
Thanks @zackzachariah. Appreciate any comments/suggestions. |
Just cloning it... (||||-----------) |
@marcoscaceres Would you also fork https://github.com/twobit/gear-lib ? The majority of security issues are from that package. |
cloning ... (||||-----------) |
Wait, that couldn't be right. When we build an npm build it doesn't include any javascript besides the core library and bundled languages (and those have literally no dependencies). So I think it's not only possible, but should be fairly trivial to move all of the node.js dependencies into Building bundles locally definitely sounds to me as a developer activity, as it assumes a source checkout rather then |
On reflection, I agree. I’ve sent a PR to move all the dependencies be dev dependencies. Waiting on review approval. |
Snyk is reporting a bunch of medium to high security issues with dependencies with this version of highlightjs. It might just be a matter of updating some dependencies.
The text was updated successfully, but these errors were encountered: