CVE-2020-13258 Cross-site scripting in Contentful

Medium 6.1 Published Updated

Reflected XSS in the Contentful Python SDK allows attackers to execute arbitrary scripts via the api parameter.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2020-13258?

CVE-2020-13258 is a medium-severity cross-site scripting vulnerability in n/a, published on 21 May 2020. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

Contentful through 2020-05-21 for Python allows reflected XSS, as demonstrated by the api parameter to the-example-app.py.

Weakness: CWE-79

Which versions are affected by CVE-2020-13258?

3 open source packages ship an affected version, including contentful. It affects 1 product.

PackageAffectedFixed in
contentful PyPIAll versions1.12.4
contentful PyPIAll versions1.12.4
contentful PyPIAll versions1.12.4

Products include Contentful Python Example.

How do I fix CVE-2020-13258?

Upgrade contentful to 1.12.4 or later.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2020-13258 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2020-13258 exists.

Public exploit code: 1 Nuclei template.

Sources

Also known as GHSA-g5j6-r3x9-gf2m, PYSEC-2026-626.

Is CVE-2020-13258 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free