fast-xml-parser icon indicating copy to clipboard operation
fast-xml-parser copied to clipboard

Vulnerability open for a few days: GHSA-gpv5-7x3g-ghjv

Open alfaproject opened this issue 3 years ago • 19 comments

All the details here: https://github.com/advisories/GHSA-gpv5-7x3g-ghjv

This was opened a few days ago, but it looks like it was already patched? Or is it a false positive?

Either way, a release can be done or the vulnerability discarded, but as it stands our pipelines are stopped right now unless we ignore this but I'd prefer not to ignore without getting feedback here.

alfaproject avatar Jun 19 '23 16:06 alfaproject

We're glad you find this project helpful. We'll try to address this issue ASAP. You can vist https://solothought.com to know recent features. Don't forget to star this repo.

github-actions[bot] avatar Jun 19 '23 16:06 github-actions[bot]

I would like to add, that this report breaks auditing tools, e.g. pnpm audit (which can not omit/skip GHSA reports). And the report itself is a bit confusing, as it is not clear if it really is a security issue or just a suggestion. Hence, the consequences of this GHSA are quite unbalanced.

jozefsukovsky avatar Jun 20 '23 06:06 jozefsukovsky

This seems to have been fixed in https://github.com/NaturalIntelligence/fast-xml-parser/commit/9a880b887916855c3a510869fd1ee268d7fe58b1 but a new release has not been published for this yet

WikiRik avatar Jun 20 '23 11:06 WikiRik

Any update on this?

Afellman avatar Jun 20 '23 19:06 Afellman

Will this be updated anytime soon?

felixsonyusuftosin avatar Jun 20 '23 19:06 felixsonyusuftosin

@amitguptagwl your published advisory on your most recent security fix means fix is hard to adopt https://github.com/advisories/GHSA-gpv5-7x3g-ghjv

martin-walsh avatar Jun 21 '23 03:06 martin-walsh

Need an update for this!

gijspon avatar Jun 21 '23 07:06 gijspon

Would be awesome to release this - aws-sdk-v3 depends on this library and brings this vulnerability

aaleksandrov avatar Jun 21 '23 09:06 aaleksandrov

This seems to have been fixed in 9a880b8 but a new release has not been published for this yet

Would like to see a quick release for this, as the issue is currently blocking many of our CI pipelines.

eclousersans avatar Jun 21 '23 12:06 eclousersans

If you want to "hotfix"/"force" your yarn audit's to pass in the meantime, here's a tip:

  • since it is fixed in the main branch, create your own fork, and tag it with 4.2.5
  • overwrite your lockfile to point to this fork

Lockfile part of the library that depends on fast-xml-parser

---    fast-xml-parser "4.2.4"
+++    fast-xml-parser "https://github.com/YourGreatFork/fast-xml-parser#v4.2.5"

Lockfile part where fast-xml-parser is declared:

--- [email protected]:
---  version "4.2.4"
+++ fast-xml-parser "https://github.com/YourGreatFork/fast-xml-parser#v4.2.5":
+++   version "4.2.5"
+++   resolved "https://github.com/YourGreatFork/fast-xml-parser#cc73065e1469147a0104dc122b0cdf6724354446"

(note that the commitID is the latest commit ID in the main branch of this repo - check it yourself to be sure!)

It's obviously not pretty, and manual lockfile edits are not a good idea in general, but it may be an acceptable temporary hotfix for your case. It should survive subsequent npm/yarn install's.

Looking forward to an actual release including the fix on the upstream package :) !

Zajozor avatar Jun 21 '23 14:06 Zajozor

Hi @amitguptagwl. Could you please help us on that? thanks

fernandopioli avatar Jun 22 '23 12:06 fernandopioli

I'm little confused here. Someone has raised a PR to update GitHub Advisory Database which is not in my control. But there is no open security issue that I know. What should I do to solve the issue? So you guys should not see any error in your build pipeline

amitguptagwl avatar Jun 22 '23 14:06 amitguptagwl

Now I've updated all the advisories with fixed version. Please check if this solve your issue.

amitguptagwl avatar Jun 22 '23 15:06 amitguptagwl

@amitguptagwl , as @WikiRik pointed here a fix was already merged so it's a matter of releasing a new version as far as I understand

aaleksandrov avatar Jun 22 '23 15:06 aaleksandrov

@aaleksandrov I have that too few mins ago. So I hope everything is shorted now.

amitguptagwl avatar Jun 22 '23 15:06 amitguptagwl

Thanks, now aws-sdk-v3 needs to release an update because they have the fast-xml-parser version pinned as 4.2.4

aaleksandrov avatar Jun 22 '23 15:06 aaleksandrov

This should not have been a security advisory in the first place but a regular issue, because the actual vulnerability was already fixed in 4.2.4. Now there are two, you should revoke those. Only publish an advisory when there is an actual vulnerability, people misuse the button "Report a vulnerability" often unfortunately.

7085 avatar Jun 22 '23 15:06 7085

Our issue is now resolved. Thanks!

eclousersans avatar Jun 22 '23 15:06 eclousersans

I'm closing this issue. But if anything left then please reopen or comment.

amitguptagwl avatar Jun 22 '23 23:06 amitguptagwl