synk issues for Cross-site Scripting (XSS) #3962
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Team,
While running a vulnerability scan using the Snyk tool, I encountered a Cross-site Scripting (XSS) issue related to unsensitized input in the
squizlabs/php_codesniffer/CodeSniffer/CLI.php
file. The issue appears at multiple lines, including 472, 608, 621, 630, 657, 668, 680, 707, 730, 754, 879, 890, 940, 948, 1215, and others.The description of the issue indicates that unsanitized input from an HTTP header flow into an include statement, where it is included dynamically. Allowing unvalidated user input to control file inclusion in PHP can lead to malicious code execution.
Currently, I am using
squizlabs/php_codesniffer
version 2.9.Could you please advise on how to resolve this issue? Thank you in advance!

Let me know if you'd like any further adjustments!
File Path: https://github.com/squizlabs/PHP_CodeSniffer/blob/2.9/CodeSniffer/CLI.php
Beta Was this translation helpful? Give feedback.
All reactions