Skip to content

Is react-i18next vulnerable to CVE-2021-23346 ? #1275

Closed
i18next/next-i18next
#1144
@andyedwardsibm

Description

@andyedwardsibm

🐛 Bug Report

Raising as an issue here as I'm not sure this makes sense to ask on SO

To Reproduce

If you want to see the bug in html-parse-stringify2 then run...

const p = require('html-parse-stringify2')

console.log('parsing')
p.parse("<!'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''!")
console.log('parsed')

This does not complete in a timely manner.

Running the following does complete quickly, but maybe I just can't think of a "bad" input yet.

const p = require('html-parse-stringify2')

console.log('parsing')
p.parse("<0><!'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''!></0>")
console.log('parsed')

Expected behavior

Hopefully you confirm this is not applicable

Your Environment

  • runtime version: Node v14
  • i18next version: i.e. 14.1.1
  • os: Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions