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

Use single quote to escape formulas #452

Merged

Conversation

robertfausk
Copy link

... and add tab \t and carriage return \r to escaped values.

As already used in symfony/serializer (https://symfony.com/blog/cve-2021-41270-prevent-csv-injection-via-formulas)
and as OWASP suggests in https://owasp.org/www-community/attacks/CSV_Injection

Credits for finding this issue in thephpleague/csv goes to @Lehmhub 👯‍♂️

and add tab ```\t``` and carriage return ```\r``` to escaped values
@nyamsprod nyamsprod self-assigned this Nov 30, 2021
@nyamsprod nyamsprod merged commit 2dd4587 into thephpleague:master Nov 30, 2021
@nyamsprod
Copy link
Member

@robertfausk thanks for the PR I will release a new version ASAP

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants