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/xss)<a href="https://agentmods.dev/rules/atlassian/forge-skills/xss"><img src="https://agentmods.dev/badge/rules/atlassian/forge-skills/xss/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/xss"><img src="https://agentmods.dev/badge/rules/atlassian/forge-skills/xss.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.00012 | $0.01482 |
| Opus 5.5 | $0.00005 | $0.00593 |
| Sonnet 5.5 | $0.00002 | $0.00296 |
| Haiku 4.5 | $0.00001 | $0.00148 |
Grade A, and why
xss 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 — 159 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Context
- Forge Custom UI apps run in iframes and can be vulnerable to XSS when
unsafe-inlineis enabled in the manifest CSP and user content is rendered without sanitization. - Related CWE: CWE-79 (Cross-Site Scripting).
- Focus review on apps that enable
unsafe-inlinefor scripts.
Prerequisites for XSS in Forge
unsafe-inlineenabled in manifest:
permissions:
content:
scripts:
- 'unsafe-inline'
- User-controlled content rendered without sanitization.
Scope & Signals
- Primary sink:
dangerouslySetInnerHTMLin React components. - Secondary sinks: Direct DOM manipulation (
innerHTML,outerHTML,insertAdjacentHTML). - Sources: Data from Atlassian APIs, storage, web triggers, user input forms.
- Note: Some Atlassian API responses are already HTML-escaped (e.g., storage API).
Vulnerable Patterns
// VULNERABLE - dangerouslySetInnerHTML with user content
function CommentDisplay({ comment }) {
return (
<div dangerouslySetInnerHTML={{ __html: comment.body }} />
);
}
// VULNERABLE - Direct HTML from API response
function RenderContent({ content }) {
// If content comes from untrusted source
return <div dangerouslySetInnerHTML={{ __html: content }} />;
}
// VULNERABLE - String replacement doesn't sanitize
const HtmlTag = (text) => {
let temp = `<span>${text.replaceAll('\\n', '</br>')}</span>`;
return <div dangerouslySetInnerHTML={{ __html: temp }} />;
};
// VULNERABLE - Direct DOM manipulation
document.getElementById('output').innerHTML = userData;
Secure Patterns
// SECURE - Use DOMPurify to sanitize
import DOMPurify from 'dompurify';
function SafeHtmlDisplay({ htmlContent }) {
const sanitized = DOMPurify.sanitize(htmlContent);
return <div dangerouslySetInnerHTML={{ __html: sanitized }} />;
}
// SECURE - Use React's default escaping (no dangerouslySetInnerHTML)
function CommentDisplay({ comment }) {
return <div>{comment.body}</div>; // React escapes by default
}
// SECURE - Use text content instead of HTML
function TextDisplay({ text }) {
return <pre>{text}</pre>;
}
// SECURE - Allowlist-based HTML rendering
import { sanitize } from 'isomorphic-dompurify';
function RichTextDisplay({ content }) {
const clean = sanitize(content, {
ALLOWED_TAGS: ['b', 'i', 'em', 'strong', 'p', 'br'],
ALLOWED_ATTR: []
});
return <div dangerouslySetInnerHTML={{ __html: clean }} />;
}
Detection Checklist
- Check manifest for
unsafe-inlineinpermissions.content.scripts. - If enabled, search for
dangerouslySetInnerHTMLusage. - Trace the HTML content source - is it user-controlled?
- Check for DOMPurify or similar sanitization before rendering.
- Look for direct DOM manipulation (
innerHTML,outerHTML). - Review library code separately from app code (reduce false positives).
Always verify by testing - don't assume sanitization:
// Test input
<p><script>console.log("XSS")</script></p>
// If sanitized, you'll see escaped output:
<p><script>...
False Positive Indicators
- Static/constant HTML strings (not user-controlled).
- CSS-in-JS libraries (styled-components) using dangerouslySetInnerHTML for styles.
- Content from Atlassian endpoints that sanitize (verify with testing).
- Multiple-choice or enum-only user input (no free text).
Severity Assessment
| Factor | Higher Severity | Lower Severity |
|---|---|---|
| Content source | Direct user input | Indirect/transformed |
| Persistence | Stored XSS | Reflected XSS |
| Target | Other users | Same user only |
| Context | Admin panels | Low-privilege areas |
PoC / Test Leads
- Input:
<img src=x onerror=alert(1)> - Input:
<script>console.log('XSS')</script> - Input:
<svg onload=alert(1)> - Test in Jira issue fields, Confluence page content, comments, custom fields.
- Verify if XSS triggers when another user views the content.
Remediation Guidance (advisory)
- Remove
unsafe-inlinefrom CSP if possible. - Use React's default escaping (avoid dangerouslySetInnerHTML).
- When HTML rendering is required, use DOMPurify with strict allowlists.
- Validate and sanitize at the point of use, not just input.
- Consider using Atlassian's UI Kit components which handle escaping.
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 · +9 lines 20828c9c1bfc
- 3mo ago First seen · 150 lines · 12 tokens per session scan A e0f3b80fc80d
xss is a cursor rule published in the GitHub repository atlassian/forge-skills (35 stars, last pushed 4d ago), licensed Apache-2.0. It adds 12 tokens to every session and 1,482 once invoked, about $0.0000 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.
xss compared with cursor rules from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| xssatlassian/forge-skills | Cursor rule | 35 | 4d ago | Apache-2.0 | A | 12 | 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 |