T08 · Insecure Dependencies
- Location
references/react.md:20- Finding
Mutable PlayCanvas Project Scaffolder Executed Through npm
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This is a documentation-only PlayCanvas guide that is coherent and not self-executing, though users should be careful with token, API, npm, npx, and CDN examples.
Reasonable to install as PlayCanvas reference material. Before running copied commands or API snippets, pin package and CDN versions, use a clean project or branch, keep PlayCanvas access tokens out of shell history and logs, and explicitly confirm any delete, force, merge, publish, or editor-automation action.
references/react.md:20Mutable PlayCanvas Project Scaffolder Executed Through npm
references/scripting.md:439Unpinned Codemod Can Execute Remote Code and Rewrite Project Sources
references/editor-publishing-web.md:21Unpinned HTTP Server Package Executed Through npx
references/web-components.md:54Mutable CDN JavaScript Loaded Directly Into the Application Origin
references/api.md:9Realistic Bearer Token Literal Embedded in API Documentation
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
# REST API
## Authorization {#authorization}
You can only access the REST API via https. In order to access the REST API you need to use an Access Token. You can generate an Access Token by going to your Organization's Account page.
In the API Tokens section click on Generate Token.
Give your token a name and click the button to create your new token. A new window will appear showing you your new access token.
Make sure you note that down because you will not be able to see the token once you close this window. This token is meant to be kept secret so do not share it with anyone other than your team (for example do not post this on forums).
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
## Authorization {#authorization}
You can only access the REST API via https. In order to access the REST API you need to use an Access Token. You can generate an Access Token by going to your Organization's Account page.
In the API Tokens section click on Generate Token.
Give your token a name and click the button to create your new token. A new window will appear showing you your new access token.
Make sure you note that down because you will not be able to see the token once you close this window. This token is meant to be kept secret so do not share it with anyone other than your team (for example do not post this on forums).
From your Account page you can also Revoke all the tokens you have generated or a specific one. You can also edit the name of a token.
When you make calls to the API you must set the 'Authorization' header in your HTTP request to this value:
The documentation includes what appears to be a concrete bearer token value in a curl example rather than an obviously fake placeholder. Even if intended as illustrative, realistic token-like secrets in docs can be copied, scraped, or mistakenly treated as valid credentials, leading to credential exposure risk.
Bearer [access_token]
Replace [access_token] with an Access Token you generated in your Account page.
For example:
curl -H "Authorization: Bearer nesgdxhiqe7hylfilr6ss1rds0gq1uj8" https://playcanvas.com/api/...
Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
Updatable fields: `name`, `tags`, `preload`, `data`, `folder_id`.
Normal rate limit. Errors: 401, 403, 404, 429.
## Delete Asset
`DELETE /api/assets/:id`
**Query params:** `force` (boolean) — required if asset has references.
Normal rate limit. Errors: 401, 403, 404, 409 (has references), 429.
## Upload Asset File
Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.
Web Components are reusable custom HTML elements that encapsulate complex functionality behind a simple, declarative interface. PlayCanvas Web Components wrap the full power of the PlayCanvas Engine in easy-to-use HTML tags, making 3D development accessible to web developers of all skill levels.
<!-- Create a 3D scene with just HTML -->
<pc-app>
<pc-scene>
<pc-entity name="camera" position="0 0 3">
Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.
}
As you can notice the response in this case also contains pagination data. To control the pagination of the response you can pass the following URL parameters:
| Name | Description |
| ------- | -------------------------------------------------------------------------------------------------------------------------------- |
| `limit` | The maximum number of items to include in the response. |
| `skip` | The number of items to skip from the original result set. |
Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.
| Strict | The strict rate limit | 5 requests/minute | 10 requests/minute |
| Assets | The assets rate limit | 60 requests/minute | 120 requests/minute |
The response will contain the following headers to help you regulate how often you call the API:
| Name | Description |
| ----------------------- | ----------------------------------------------------------------------------------------------------------------------- |
| `X-RateLimit-Limit` | The number of requests allowed in a minute. |
| `X-RateLimit-Remaining` | The remaining number of requests that you are allowed to make this minute. |
This markdown file documents a DELETE endpoint for removing assets, including a force parameter for referenced assets, but provides no warning about data loss or irreversibility. For markdown files, destructive behaviors that could affect user data should include an explicit warning to users.
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
The Editor has a user accessible API that is currently in beta which can be used to help automate and extend the base functionality.
The API is not yet considered stable and may change in the future as we continue development. However, it is unlikely that API will change a lot from its current state.
The Editor API is open sourced on [GitHub](https://github.com/playcanvas/editor-api). The API documentation can be found [here](https://api.playcanvas.com/editor/).
## Automation Example
The API can be accessed via the browser's devtools console allowing for automation of repetitive tasks. In the example below, we are using the Editor to find all the Entities that have the tag 'red' and disabling them by running code in the browser console.
Editor API code:
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
The Editor has a user accessible API that is currently in beta which can be used to help automate and extend the base functionality.
The API is not yet considered stable and may change in the future as we continue development. However, it is unlikely that API will change a lot from its current state.
The Editor API is open sourced on [GitHub](https://github.com/playcanvas/editor-api). The API documentation can be found [here](https://api.playcanvas.com/editor/).
## Automation Example
The API can be accessed via the browser's devtools console allowing for automation of repetitive tasks. In the example below, we are using the Editor to find all the Entities that have the tag 'red' and disabling them by running code in the browser console.
Editor API code:
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
The Editor has a user accessible API that is currently in beta which can be used to help automate and extend the base functionality.
The API is not yet considered stable and may change in the future as we continue development. However, it is unlikely that API will change a lot from its current state.
The Editor API is open sourced on [GitHub](https://github.com/playcanvas/editor-api). The API documentation can be found [here](https://api.playcanvas.com/editor/).
## Automation Example
The API can be accessed via the browser's devtools console allowing for automation of repetitive tasks. In the example below, we are using the Editor to find all the Entities that have the tag 'red' and disabling them by running code in the browser console.
Editor API code:
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
The Editor has a user accessible API that is currently in beta which can be used to help automate and extend the base functionality.
The API is not yet considered stable and may change in the future as we continue development. However, it is unlikely that API will change a lot from its current state.
The Editor API is open sourced on [GitHub](https://github.com/playcanvas/editor-api). The API documentation can be found [here](https://api.playcanvas.com/editor/).
## Automation Example
The API can be accessed via the browser's devtools console allowing for automation of repetitive tasks. In the example below, we are using the Editor to find all the Entities that have the tag 'red' and disabling them by running code in the browser console.
Editor API code:
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
The Editor has a user accessible API that is currently in beta which can be used to help automate and extend the base functionality.
The API is not yet considered stable and may change in the future as we continue development. However, it is unlikely that API will change a lot from its current state.
The Editor API is open sourced on [GitHub](https://github.com/playcanvas/editor-api). The API documentation can be found [here](https://api.playcanvas.com/editor/).
## Automation Example
The API can be accessed via the browser's devtools console allowing for automation of repetitive tasks. In the example below, we are using the Editor to find all the Entities that have the tag 'red' and disabling them by running code in the browser console.
Editor API code:
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
The Editor has a user accessible API that is currently in beta which can be used to help automate and extend the base functionality.
The API is not yet considered stable and may change in the future as we continue development. However, it is unlikely that API will change a lot from its current state.
The Editor API is open sourced on [GitHub](https://github.com/playcanvas/editor-api). The API documentation can be found [here](https://api.playcanvas.com/editor/).
## Automation Example
The API can be accessed via the browser's devtools console allowing for automation of repetitive tasks. In the example below, we are using the Editor to find all the Entities that have the tag 'red' and disabling them by running code in the browser console.
Editor API code:
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
The Editor has a user accessible API that is currently in beta which can be used to help automate and extend the base functionality.
The API is not yet considered stable and may change in the future as we continue development. However, it is unlikely that API will change a lot from its current state.
The Editor API is open sourced on [GitHub](https://github.com/playcanvas/editor-api). The API documentation can be found [here](https://api.playcanvas.com/editor/).
## Automation Example
The API can be accessed via the browser's devtools console allowing for automation of repetitive tasks. In the example below, we are using the Editor to find all the Entities that have the tag 'red' and disabling them by running code in the browser console.
Editor API code:
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
The Editor has a user accessible API that is currently in beta which can be used to help automate and extend the base functionality.
The API is not yet considered stable and may change in the future as we continue development. However, it is unlikely that API will change a lot from its current state.
The Editor API is open sourced on [GitHub](https://github.com/playcanvas/editor-api). The API documentation can be found [here](https://api.playcanvas.com/editor/).
## Automation Example
The API can be accessed via the browser's devtools console allowing for automation of repetitive tasks. In the example below, we are using the Editor to find all the Entities that have the tag 'red' and disabling them by running code in the browser console.
Editor API code:
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
The Editor has a user accessible API that is currently in beta which can be used to help automate and extend the base functionality.
The API is not yet considered stable and may change in the future as we continue development. However, it is unlikely that API will change a lot from its current state.
The Editor API is open sourced on [GitHub](https://github.com/playcanvas/editor-api). The API documentation can be found [here](https://api.playcanvas.com/editor/).
## Automation Example
The API can be accessed via the browser's devtools console allowing for automation of repetitive tasks. In the example below, we are using the Editor to find all the Entities that have the tag 'red' and disabling them by running code in the browser console.
Editor API code:
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
The Editor has a user accessible API that is currently in beta which can be used to help automate and extend the base functionality.
The API is not yet considered stable and may change in the future as we continue development. However, it is unlikely that API will change a lot from its current state.
The Editor API is open sourced on [GitHub](https://github.com/playcanvas/editor-api). The API documentation can be found [here](https://api.playcanvas.com/editor/).
## Automation Example
The API can be accessed via the browser's devtools console allowing for automation of repetitive tasks. In the example below, we are using the Editor to find all the Entities that have the tag 'red' and disabling them by running code in the browser console.
Editor API code:
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
The Editor has a user accessible API that is currently in beta which can be used to help automate and extend the base functionality.
The API is not yet considered stable and may change in the future as we continue development. However, it is unlikely that API will change a lot from its current state.
The Editor API is open sourced on [GitHub](https://github.com/playcanvas/editor-api). The API documentation can be found [here](https://api.playcanvas.com/editor/).
## Automation Example
The API can be accessed via the browser's devtools console allowing for automation of repetitive tasks. In the example below, we are using the Editor to find all the Entities that have the tag 'red' and disabling them by running code in the browser console.
Editor API code:
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
The Editor has a user accessible API that is currently in beta which can be used to help automate and extend the base functionality.
The API is not yet considered stable and may change in the future as we continue development. However, it is unlikely that API will change a lot from its current state.
The Editor API is open sourced on [GitHub](https://github.com/playcanvas/editor-api). The API documentation can be found [here](https://api.playcanvas.com/editor/).
## Automation Example
The API can be accessed via the browser's devtools console allowing for automation of repetitive tasks. In the example below, we are using the Editor to find all the Entities that have the tag 'red' and disabling them by running code in the browser console.
Editor API code:
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
The Editor has a user accessible API that is currently in beta which can be used to help automate and extend the base functionality.
The API is not yet considered stable and may change in the future as we continue development. However, it is unlikely that API will change a lot from its current state.
The Editor API is open sourced on [GitHub](https://github.com/playcanvas/editor-api). The API documentation can be found [here](https://api.playcanvas.com/editor/).
## Automation Example
The API can be accessed via the browser's devtools console allowing for automation of repetitive tasks. In the example below, we are using the Editor to find all the Entities that have the tag 'red' and disabling them by running code in the browser console.
Editor API code:
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
The Editor has a user accessible API that is currently in beta which can be used to help automate and extend the base functionality.
The API is not yet considered stable and may change in the future as we continue development. However, it is unlikely that API will change a lot from its current state.
The Editor API is open sourced on [GitHub](https://github.com/playcanvas/editor-api). The API documentation can be found [here](https://api.playcanvas.com/editor/).
## Automation Example
The API can be accessed via the browser's devtools console allowing for automation of repetitive tasks. In the example below, we are using the Editor to find all the Entities that have the tag 'red' and disabling them by running code in the browser console.
Editor API code:
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
The Editor has a user accessible API that is currently in beta which can be used to help automate and extend the base functionality.
The API is not yet considered stable and may change in the future as we continue development. However, it is unlikely that API will change a lot from its current state.
The Editor API is open sourced on [GitHub](https://github.com/playcanvas/editor-api). The API documentation can be found [here](https://api.playcanvas.com/editor/).
## Automation Example
The API can be accessed via the browser's devtools console allowing for automation of repetitive tasks. In the example below, we are using the Editor to find all the Entities that have the tag 'red' and disabling them by running code in the browser console.
Editor API code:
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
The Editor has a user accessible API that is currently in beta which can be used to help automate and extend the base functionality.
The API is not yet considered stable and may change in the future as we continue development. However, it is unlikely that API will change a lot from its current state.
The Editor API is open sourced on [GitHub](https://github.com/playcanvas/editor-api). The API documentation can be found [here](https://api.playcanvas.com/editor/).
## Automation Example
The API can be accessed via the browser's devtools console allowing for automation of repetitive tasks. In the example below, we are using the Editor to find all the Entities that have the tag 'red' and disabling them by running code in the browser console.
Editor API code:
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
The Editor has a user accessible API that is currently in beta which can be used to help automate and extend the base functionality.
The API is not yet considered stable and may change in the future as we continue development. However, it is unlikely that API will change a lot from its current state.
The Editor API is open sourced on [GitHub](https://github.com/playcanvas/editor-api). The API documentation can be found [here](https://api.playcanvas.com/editor/).
## Automation Example
The API can be accessed via the browser's devtools console allowing for automation of repetitive tasks. In the example below, we are using the Editor to find all the Entities that have the tag 'red' and disabling them by running code in the browser console.
Editor API code: