Anypoint Best Practices

(14 reviews)

no-script-tags-in-markdown

general > no-script-tags-in-markdown


Guidance

This rule protects against a potential exploit, that can occur when you add description documents from third parties then
generate HTML documentation. If one of those third parties does something like inject `<script>` tags, they
could easily execute arbitrary code on your domain.

Message

Do not use script tags in markdown

Examples

valid

#%RAML 1.0
title: ANG Governance xAPI
description: ANG Governance xAPI

invalid

#%RAML 1.0
title: ANG Governance xAPI
description: ANG Governance xAPI <script>

Applies to WebAPI

Constraint

Type: Declarative Validation

Reviews

TypeRuleset
OrganizationMuleSoft
Published by
MuleSoft Organization
Published onDec 11, 2023
Asset overview

Asset versions for 1.6.x

Asset versions
VersionActions
1.6.1
1.6.0

Tags