Summit-ready 2.12 preview - #3308
Static App Security Check
🟡 Potential Security Issues Found
If you are seeing this message, it means that the security scanning tool that Apollo uses to test our source has identified a potential security issue in code introduced or updated via your branch. Information about what was detected and steps to move forward are below.
If the scanner detected a legitimate issue, please take action to correct it prior to merging this PR. The action required will vary based on the detection. If the detection is a false positive, please follow the steps below to resolve the issue.
Issues Detected
| Message | Caused CI Failure? | Link | Path | Signature |
|---|---|---|---|---|
| Bracket object notation with user input is present, this might allow an attacker to access all properties of the object and even it's prototype, leading to possible code execution. | No | Link | subgraph-js/src/schema-helper/buildSchemaFromSDL.ts | rules.providers.gitlab.security.eslint.detect-object-injection |
| Bracket object notation with user input is present, this might allow an attacker to access all properties of the object and even it's prototype, leading to possible code execution. | No | Link | subgraph-js/src/schema-helper/buildSchemaFromSDL.ts | rules.providers.gitlab.security.eslint.detect-object-injection |
False Positive Resolution Process
The easiest way to resolve a false positive is to add a comment containing nosemgrep to the code that triggered the detection. You can add the comment directly to the line triggering the detection or on the line immediately above it. For example:
#!/usr/bin/env python3
def my_function():
my_code_generating_detection() # nosemgrepWhat if I can't add a line comment?
If you can't add a comment because the detection is generated by a file that does not support comments (like JSON), you can use Semgrep's .semgrepignore file. For more information about how to create an exclusion via .semgrepignore, refer to the Semgrep documentation.
Getting Help
The Apollo Security team is available to assist in resolving this issue. Please tag us on this PR using @apollographql/security if you need assistance!
How do I know I fixed this correctly?
You will need to resolve all items in the table above that "Caused CI Failure" prior to merging. Once you have, this check will stop reporting an ❌. We encourage you to resolve issues that aren't causing CI failures as well, but it is not required to merge.
Annotations
Check warning on line 144 in subgraph-js/src/schema-helper/buildSchemaFromSDL.ts
apollo-secops / Static App Security Check
rules.providers.gitlab.security.eslint.detect-object-injection
Bracket object notation with user input is present, this might allow an attacker to access all properties of the object and even it's prototype, leading to possible code execution.
Check warning on line 136 in subgraph-js/src/schema-helper/buildSchemaFromSDL.ts
apollo-secops / Static App Security Check
rules.providers.gitlab.security.eslint.detect-object-injection
Bracket object notation with user input is present, this might allow an attacker to access all properties of the object and even it's prototype, leading to possible code execution.