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

marked dependency is insecure version #1489

Open
anselmbradford opened this issue Jan 4, 2018 · 14 comments
Open

marked dependency is insecure version #1489

anselmbradford opened this issue Jan 4, 2018 · 14 comments

Comments

@anselmbradford
Copy link

https://nvd.nist.gov/vuln/detail/CVE-2017-17461
https://nvd.nist.gov/vuln/detail/CVE-2017-1000427

Suggested update marked ~> 0.3.9.

@thijstriemstra
Copy link

Running into same issue, can a new jsdoc be released with a marked 0.3.9?

@wuhanyumsft
Copy link

The same issue here.

@Radiergummi
Copy link

Hearing the Github announcement of security vulnerability notifications, I've already wondered what it will be if a commonly used dependency of a commonly used dependency has a security problem... here we are, with possibly thousands of projects affected! 😄

@fgm
Copy link

fgm commented Jan 5, 2018

A temporary solution can be to add an explicit dependency to marked ~0.3.9 on dependent projects. With Yarn and reasonably recent versions of NPM, a single version of marked will be used and will actually be 0.3.9, which works around the problem.

gchoqueux added a commit to iTowns/itowns that referenced this issue Jan 8, 2018
In jsdoc, marked dependency is insecure version (0.3.6)
A issue propose a temporary solution: to add an explicit dependency to marked ~0.3.9
jsdoc/jsdoc#1489 (comment)
gchoqueux added a commit to iTowns/itowns that referenced this issue Jan 8, 2018
In jsdoc, marked dependency is insecure version (0.3.6)
A issue propose a temporary solution: to add an explicit dependency to marked ~0.3.9
jsdoc/jsdoc#1489 (comment)
gchoqueux added a commit to iTowns/itowns that referenced this issue Jan 8, 2018
In jsdoc, marked dependency is insecure version (0.3.6)
A issue propose a temporary solution: to add an explicit dependency to marked ~0.3.9
jsdoc/jsdoc#1489 (comment)
tingshao added a commit to tingshao/jsdoc that referenced this issue Jan 9, 2018
The version is set to "~0.3.9"

Fixes jsdoc#1489
tingshao added a commit to tingshao/jsdoc that referenced this issue Jan 9, 2018
The version is set to "~0.3.9"

Fixes jsdoc#1489
tingshao added a commit to tingshao/librealsense that referenced this issue Jan 9, 2018
tingshao added a commit to tingshao/librealsense that referenced this issue Jan 9, 2018
…rkaround

The security issue is jsdoc/jsdoc#1489

The manually added dependency is to force to use the secure version before
jsdoc released its secure version.
dorodnic pushed a commit to IntelRealSense/librealsense that referenced this issue Jan 9, 2018
…rkaround

The security issue is jsdoc/jsdoc#1489

The manually added dependency is to force to use the secure version before
jsdoc released its secure version.

(cherry picked from commit d1fbeae)
@Danw33
Copy link

Danw33 commented Jan 9, 2018

@micmath / @hegemonic

Nostradamos pushed a commit to Nostradamos/plantjournal-api-sqlite3 that referenced this issue Jan 9, 2018
@thijstriemstra
Copy link

thijstriemstra commented Jan 13, 2018

ping @hegemonic, can a maintainer please take a look at this trivial issue that has big implications?

@jy95
Copy link

jy95 commented Jan 14, 2018

Don't know if the maintainers saw there is a new version of this : v0.3.12

The fun fact is this line of the release :

Addresses issue where some users might not have been able to update due to missing use strict #991

it's worth a try XD

@nyteshade
Copy link

3.5.5 still points to a version of marked < 0.3.9. Even if a new version was pushed here with a fix, it wasn't published to npm. Can new version please be published?

@thijstriemstra
Copy link

Its been 30 days, no devs respond, is this project dead, devs do not care or both?

lance added a commit to nodeshift/opossum that referenced this issue Jan 29, 2018
Man, they really need to get with the program over there.
JSDoc is dead to me.

Ref:  jsdoc/jsdoc#1489
roback added a commit to twingly/twingly-search-api-node that referenced this issue Feb 14, 2018
Marked is a dependency of jsdoc. Added marked as a dev dependency to
be able to update it to latest version. This is just a temporary fix
until jsdoc/jsdoc#1489 has been released.

Idea from jsdoc/jsdoc#1489 (comment)

Related to #22

https://nvd.nist.gov/vuln/detail/CVE-2017-1000427
@75lb
Copy link

75lb commented Mar 21, 2018

this trivial issue that has big implications?

Does it really have big implications? It seems to me there are zero security implications here. Unless you think a hacker, having already compromised a server to a sufficient degree to launch a process, would be firing up a shell looking for command-line tools to exploit. If a villain already hacked his way into a server, why would he be searching for exploits in a command-line tool (like jsdoc), looking for ways to run malicious code? He already compromised the box and can run whatever code he likes.

@Radiergummi
Copy link

@75lb this isn't about command line tools. It would be enough for someone to contribute seemingly proper code to a Github project but include a hidden base64 URI somewhere. If that stays unnoticed and the PR is merged in, the next time JSDoc is used to generate the docs, it will include the malicious code. Et voilà, there you have it: Public documentation of a possibly big open source project, compromising all visitors.

@75lb
Copy link

75lb commented Mar 21, 2018

@Radiergummi So hackers are now successfully submitting malicious code as PR requests? Knowing the maintainer of the project is an experienced guy, I can't say I'm too worried about that risk, personally.

Anyway, this project has a dependency on marked@~0.3.6 meaning that when you install jsdoc, marked v0.3.17 (the latest version compatible with ~0.3.6) is installed - which has no security issues. I still can't find a security issue here.

@loanlaux
Copy link

@75lb People who have installed jsdoc earlier with marked version 0.3.6 (myself for example) don't necessarily get updated running npm install again. I just ran npm audit to check my deps for vulnerability and this jsdoc/marked issue is the only one that stands out as "High risk".

screen shot 2018-05-11 at 10 15 52

I'm not sure that's the best image for jsdoc, especially given that the only thing to do is to bump the marked version in package.json.

@arnaugm
Copy link

arnaugm commented Dec 9, 2020

Any update on this? The issue seems to be still present.

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

Successfully merging a pull request may close this issue.