cwe-776-xml-entity-expansion

Official

Secure Java XML parsing

AuthorDevelopersCoffee
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill addresses critical security vulnerabilities in Java applications related to XML Entity Expansion, commonly known as the "Billion Laughs" attack, preventing denial-of-service and data leakage.

Core Features & Use Cases

  • Vulnerability Remediation: Provides deterministic fixes for CWE-776.
  • Secure XML Parsing: Implements secure configurations for DocumentBuilderFactory to disallow DTDs and entity expansion.
  • Use Case: Automatically refactor Java code snippets identified by SAST tools as vulnerable to XML Entity Expansion, ensuring robust security in XML processing.

Quick Start

Use the cwe-776-xml-entity-expansion skill to secure the provided Java XML parsing code.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: cwe-776-xml-entity-expansion
Download link: https://github.com/DevelopersCoffee/java-cwe-security-skills/archive/main.zip#cwe-776-xml-entity-expansion

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.