LiveActive security incident?Get immediate response
CVE Record

CVE-2021-39286: Webrecorder pywb before 2.6.0 allows XSS because it does not ensure that Jinja2 templates are autoescaped.

Webrecorder pywb before 2.6.0 allows XSS because it does not ensure that Jinja2 templates are autoescaped.

UnknownCVSS not scoredNot KEV-listedUpdated
Glexia's TakeAutomated analysisunknown

Security readout for executives and security teams

Plain-English summary

CVE-2021-39286 is an XSS issue in Webrecorder pywb before 2.6.0. The problem is that Jinja2 templates were not guaranteed to be autoescaped, which could let unsafe content render in a user’s browser. The sources do not provide a CVSS score or evidence of active exploitation.

Executive priority

Prioritize remediation if pywb is internet-facing or used by untrusted users. The business risk is browser-side compromise through XSS, but urgency is constrained by missing severity scoring and no cited active exploitation.

Technical view

pywb versions before 2.6.0 did not ensure Jinja2 template autoescaping. This creates a cross-site scripting risk where untrusted rendered content may execute in a client browser. The public record points to a fixing commit and the v2.5.0-to-v2.6.0 comparison, but provides limited implementation detail.

Likely exposure

Exposure is likely limited to organizations running Webrecorder pywb before 2.6.0, especially internet-accessible archive/replay services. The supplied affected-product metadata is incomplete, so confirm through dependency and deployment inventory.

Exploitation context

The provided sources describe the vulnerability class and affected version range. They do not cite public exploit use, CISA KEV status, exploit maturity, or a CVSS score. Treat exploitation status as unconfirmed.

Researcher notes

Key unknowns are exploit preconditions, affected template surfaces, and whether downstream packages backported the fix. Validate exact deployed code, not only package names. Avoid assuming broader Webrecorder products are affected without evidence.

Mitigation direction

  • Identify all pywb deployments and packaged dependencies.
  • Upgrade pywb to 2.6.0 or later where applicable.
  • Review the referenced upstream commit before production rollout.
  • Audit Jinja2 templates for autoescaping and unsafe rendering paths.
  • Check vendor project guidance for any additional hardening.

Validation and detection

  • Confirm deployed pywb versions are 2.6.0 or newer.
  • Verify the referenced autoescaping fix is present in deployed code.
  • Inventory internet-facing pywb services and access paths.
  • Review application logs for suspicious requests to pywb pages.
  • Confirm tests cover template rendering of untrusted content.
Prepared
Confidence
medium
Sources
4

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cve · low confidence lookup

CVE-2021-39286 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Unknown
CVSS
Not scored
Known Exploited
No
Published
Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

0CVSS vectors
0Timeline events
0ADP providers
3Source links

CVSS and timeline data

No CVSS vectors or timeline events were available in the normalized CVE source material.

Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
n/an/an/aListed
Weakness

CWE details

No CWE listed

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.