Back to skill

Security audit

docspring-pdf-templates

Security checks for vulnerabilities and agentic risk

Overview

The scanners report a PDF-template skill with no AIG findings and several Skillspector alerts judged expected for its purpose; the verdict is benign, with medium confidence and incomplete reference coverage.

The verdict is benign, but benign does not mean risk-free. Skillspector’s scan was partial because several local path-like references could not be resolved, so evidence is incomplete; consider that limitation before installing.

Vulnerability Patterns
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
Vulnerability Patterns
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Memory PoisoningPersistent Context Injection, Context Window Stuffing, Memory Manipulation
  • Tool MisuseTool Parameter Abuse, Chaining Abuse, Unsafe Defaults
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (8)

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
80% confidence
Finding

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).

Content

Scanner excerpt · SKILL.md (reported line 336)May include surrounding context.

md
| `GET /templates/{template_id}/diff`                                                                 |
| `publish_version`, `restore_version`   | `templates publish`, `templates restore`                                           | `POST /templates/{template_id}/publish_version`, `/restore_version`                                 |
| `delete_version`, `delete_template`    | `templates delete <template_id> --version 1.2.0`, `templates delete <template_id>` | `DELETE /templates/{template_id}?version=1.2.0`, `DELETE /templates/{template_id}`                  |
| `replace_template_pdf`                 | `templates update-document`, or `templates upload-document <template_id> <file>`   | `PUT /templates/{template_id}/document`, or `/document/upload` (multipart)                          |
| `copy_template`, `move_template`       | `templates copy`, `templates move`                                                 | `POST /templates/{template_id}/copy`, `/m

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
80% confidence
Finding

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).

Content

Scanner excerpt · SKILL.md (reported line 336)May include surrounding context.

md
| `GET /templates/{template_id}/diff`                                                                 |
| `publish_version`, `restore_version`   | `templates publish`, `templates restore`                                           | `POST /templates/{template_id}/publish_version`, `/restore_version`                                 |
| `delete_version`, `delete_template`    | `templates delete <template_id> --version 1.2.0`, `templates delete <template_id>` | `DELETE /templates/{template_id}?version=1.2.0`, `DELETE /templates/{template_id}`                  |
| `replace_template_pdf`                 | `templates update-document`, or `templates upload-document <template_id> <file>`   | `PUT /templates/{template_id}/document`, or `/document/upload` (multipart)                          |
| `copy_template`, `move_template`       | `templates copy`, `templates move`                                                 | `POST /templates/{template_id}/copy`, `/m

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
80% confidence
Finding

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).

Content

Scanner excerpt · SKILL.md (reported line 360)May include surrounding context.

md
`pending` preview: get it every second or two until its `state` is `processed` (or `error`, with an
  `error_message`). Its `pages` are PNG images, not a PDF: download each one from `pages[].download_url`.
- `restore_version` doesn't check for unpublished changes: check `GET /templates/{template_id}/diff` first.
- `DELETE /templates/{template_id}` without `version` deletes the template and every version (`delete_template`):
  send `version` to delete one version.

Guides: [create a PDF template with the API](https://docspring.com/docs/api-guide/create-pdf-templates/) and the

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
80% confidence
Finding

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).

Content

Scanner excerpt · SKILL.md (reported line 339)May include surrounding context.

emplate |templates delete <template_id> --version 1.2.0, templates delete <template_id>|DELETE /templates/{template_id}?version=1.2.0, DELETE /templates/{template_id} | |replace_template_pdf |templates update-document, or templates upload-document <template_id> |PUT /templates/{template_id}/document, or /document/upload(multipart) | |copy_template, move_template |templates copy, templates move |POST /templates/{template_id}/copy, /move | | folder tools |folders list, create, rename, move, delete |GET, POST /folders; POST /folders/{folder_id}/rename, /move; DELETE /folders/{folder_id}` |

bash
docspring templates upload rental-application.pdf --name "Rental application" --detect-fields --json

Context Window Stuffing

Medium
Category
Memory Poisoning
Confidence
80% confidence
Finding

Skill attempts to fill the context window with filler content, displacing legitimate instructions and safety constraints. This can degrade agent performance or bypass safety boundaries.

Content

Scanner excerpt · references/fields.md (reported line 116)May include surrounding context.

md
**Text** (`display_type: "text"`):

| Setting                              | Values                                                                                                                                                                                                                                                                                                |
| ------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `typeface`                           | `Helvetica`, `Arial`, `Calibri`, `Open Sans`, `Roboto`, `Lato`, `Poppins`, `Public Sans`, `Questrial`, `Times New Roman`, `Dancing Script`, `Lovtony Script`, or monospace `Courier`, `Inconsolata`, `Menlo`, `Roboto Mono`, `Ubuntu Mono`. Empty: the t

Context Window Stuffing

Medium
Category
Memory Poisoning
Confidence
80% confidence
Finding

Skill attempts to fill the context window with filler content, displacing legitimate instructions and safety constraints. This can degrade agent performance or bypass safety boundaries.

Content

Scanner excerpt · references/fields.md (reported line 121)May include surrounding context.

md
|
| `character_spacing`                  | Extra points between characters, 0 to 50.                                                                                                                                                                                                                                                             |
| `bold`, `uppercase`, `strikethrough` | `true` or `false`.                                                                                                                                                                                                                                                                                    |
| `color`, `background_color`          | 6 hex digits without `#` (`444444`). The background covers what the page shows behind a filled field.

Context Window Stuffing

Medium
Category
Memory Poisoning
Confidence
80% confidence
Finding

Skill attempts to fill the context window with filler content, displacing legitimate instructions and safety constraints. This can degrade agent performance or bypass safety boundaries.

Content

Scanner excerpt · references/fields.md (reported line 124)May include surrounding context.

md
|
| `alignment`                          | `left` (default), `center`, `right`, `justify`.                                                                                                                                                                                                                                                       |
| `v_alignment`                        | `bottom` (default), `center`, `top`.                                                                                                                                                                                                                                                                  |
| `overflow`                           | `shrink_to_fit` (default, down to 5 points) or `truncate` (the rest goes in the submission's `truncated_text`).

Whitespace Padding

Medium
Category
Prompt Injection
Confidence
70% confidence
Finding

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.

Content

Scanner excerpt · references/fields.md (reported line 141)May include surrounding context.

md
e `condition`. |
| `number_condition_type`                                        | `equals` (default), `gt`, `gte`, `lt`, `lte`, `range` (with `number_condition_range_min`, `number_condition_range_max` and their `_exclusive_` settings).                                                                                                          |
| `check_character`                                              | `&#10004;` (✔, default), `&#10003;` (✓), `&#10006;` (✖), `&#10007;` (✗), `&#10008;` (✘).                                                                                                                                                                         |
| `check_color`                                                  | 6 hex digits.                                                                                                                                                                                                                                                      |
|