-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
parse first, then interpolate #1345
Conversation
This avoids problems with user given values potentially breaking the parse tree Regarding #1344
I believe this is ready for review |
lgtm |
should be still backwards compatible, right? |
lgtm.... https://github.com/i18next/react-i18next/blob/master/test/trans.render.spec.js#L336 -> initial reason should be covered by tests |
included in v11.11.3 |
Thank you @ckruse for your contribution. |
Thank you for your work! |
I wanted to create an issue but since this was fixed in this PR I would like to comment with some additional information. The function App() {
const [text, setText] = useState('');
return (
<>
<input
value={text}
onChange={(e) => setText(e.target.value)}
/>
<p><Trans>You entered {{text}}</Trans></p>
</>
);
} |
@jamuhl @adrai According to https://nodejs.org/en/security/#reporting-a-bug-in-a-third-party-module a package owner should create a security report, so the vulnerability is properly reported by npm vulnerability check and tools like dependabot. |
@dlavrenuek Maybe you compared it to a version < v10.12.2 ? => https://github.com/i18next/react-i18next/blob/master/CHANGELOG.md#10122 (342027d) |
@adrai I missed to provide that
So far I was not successful at executing javascript with it due to restrictions with |
this was tested long ago and there is yet no known way of injecting executable code into As the |
This avoids problems with user given values potentially breaking the parse tree
Regarding #1344
Checklist
npm run test