Atlassian Forge Skills supports Atlassian Forge, a platform for building and deploying apps that extend products such as Jira and Confluence. Its skills and MCP-backed tools help coding agents create Forge apps, review them before deployment, optimize usage, troubleshoot failures, and work with Forge APIs and the Atlassian Design System.
Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
git clone --depth 1 https://github.com/atlassian/forge-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/rules/atlassian/forge-skills/prototype-pollution)<a href="https://agentmods.dev/rules/atlassian/forge-skills/prototype-pollution"><img src="https://agentmods.dev/badge/rules/atlassian/forge-skills/prototype-pollution/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/rules/atlassian/forge-skills/prototype-pollution"><img src="https://agentmods.dev/badge/rules/atlassian/forge-skills/prototype-pollution.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00013 | $0.01157 |
| Opus 5.5 | $0.00005 | $0.00463 |
| Sonnet 5.5 | $0.00003 | $0.00231 |
| Haiku 4.5 | $0.00001 | $0.00116 |
Grade A, and why
prototype-pollution scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 20d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 151 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Context
- Prototype pollution in Forge RuntimeV2 can enable cross tenant data leakage and privilege escalation from asUser to asApp by injecting fetch headers.
- Related CWE: CWE-1321 (Improperly Controlled Modification of Object Prototype Attributes).
- Forge-specific: Default libraries in RuntimeV2 allow attackers to exploit prototype pollution for privilege escalation.
Scope & Signals
- Sources: JSON parsing, object merging, query/body parsing, deserialization.
- Sinks: Object property assignment, deep merge utilities, spread operators with untrusted keys.
- Red flags:
__proto__,prototype,constructorin property paths from user input.- Deep merge without prototype guards (lodash < 4.17.12, jQuery.extend, etc.).
- Object.assign with untrusted objects.
Forge-Specific Escalation Path
// In RuntimeV2, prototype pollution can upgrade asUser() to asApp()
// by injecting headers into fetch calls
// If attacker can pollute Object.prototype:
Object.prototype.headers = {
'x-forge-oauth': 'app' // Hypothetical escalation header
};
// Subsequent asUser() calls may inherit polluted headers
const api = asUser();
await api.requestJira(route`/rest/api/3/issue/TEST-1`);
// Request now uses app-level permissions
Vulnerable Patterns
// VULNERABLE - Merge user input without guards
const config = {};
Object.assign(config, JSON.parse(payload.settings));
// VULNERABLE - Deep merge with untrusted data
import merge from 'lodash.merge';
const merged = merge(defaults, userInput);
// VULNERABLE - Bracket notation with user key
const key = payload.key;
obj[key] = payload.value; // key could be "__proto__"
// VULNERABLE - Recursive object assignment
function deepSet(obj, path, value) {
const keys = path.split('.');
let current = obj;
for (let i = 0; i < keys.length - 1; i++) {
current = current[keys[i]] = current[keys[i]] || {};
}
current[keys[keys.length - 1]] = value;
}
deepSet({}, payload.path, payload.value); // path = "__proto__.polluted"
Secure Patterns
// SECURE - Reject dangerous keys
function safeSet(obj, key, value) {
if (['__proto__', 'prototype', 'constructor'].includes(key)) {
throw new Error('Invalid key');
}
obj[key] = value;
}
// SECURE - Use Object.create(null) for prototype-less objects
const config = Object.create(null);
Object.assign(config, sanitizedInput);
// SECURE - Use Map instead of objects for dynamic keys
const userSettings = new Map();
userSettings.set(payload.key, payload.value);
// SECURE - Schema validation with allowlisted keys
import { z } from 'zod';
const SettingsSchema = z.object({
theme: z.string(),
language: z.string()
}).strict(); // Reject unknown keys
const settings = SettingsSchema.parse(payload.settings);
// SECURE - Updated lodash with prototype guards
import merge from 'lodash.merge'; // v4.17.21+
// Still recommend explicit key validation
Detection Checklist
- Search for
__proto__,prototype,constructorin code. - Find Object.assign, spread operators with untrusted sources.
- Check for deep merge utilities and their versions.
- Identify bracket notation property access with dynamic keys.
- Look for recursive object traversal/assignment functions.
- Check package.json for vulnerable lodash, hoek, jQuery versions.
PoC / Test Leads
// Test payload for prototype pollution
const maliciousPayload = {
"__proto__": {
"polluted": true
}
};
// Or via constructor
const payload2 = {
"constructor": {
"prototype": {
"polluted": true
}
}
};
// Verify pollution
console.log({}.polluted); // Should be undefined, true if polluted
Remediation Guidance (advisory)
- Reject
__proto__,prototype,constructorkeys at input validation. - Use schema validators (zod, joi) with strict mode to allowlist keys.
- Create objects with
Object.create(null)when prototype not needed. - Use Map/Set for dynamic key storage.
- Update lodash to 4.17.21+ and other merge libraries.
- Freeze prototypes in sensitive contexts:
Object.freeze(Object.prototype).
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 20d ago Changed · +4 lines beb0f67ef87e
- 3mo ago First seen · 147 lines · 13 tokens per session scan A ed7a385f9ddd
prototype-pollution is a cursor rule published in the GitHub repository atlassian/forge-skills (35 stars, last pushed 4d ago), licensed Apache-2.0. It adds 13 tokens to every session and 1,157 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
prototype-pollution compared with cursor rules from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| prototype-pollutionatlassian/forge-skills | Cursor rule | 35 | 4d ago | Apache-2.0 | A | 13 | Cursor |
| ponytailDietrichGebert/ponytail | Cursor rule | 201k | 8d ago | MIT | A | 604 | Cursor |
| angular-20angular/angular | Cursor rule | 102k | 4d ago | MIT | A | 0 | Cursor |
| dev-standardapache/superset | Cursor rule | 76k | today | Apache-2.0 | A | 1,147 | Cursor |
| prefer-assertions-over-defensive-checksprisma/orm | Cursor rule | 48k | today | Apache-2.0 | A | 0 | Cursor |
| prefer-direct-imports-over-module-mocksprisma/orm | Cursor rule | 48k | today | Apache-2.0 | A | 0 | Cursor |
| shared-plane-packagesprisma/orm | Cursor rule | 48k | today | Apache-2.0 | A | 0 | Cursor |