GHSA-mjcr-rqjg-rhg3: Datasette indieauth Implementation Trusts The "me" Field Vulnerability

CRITICAL
CWE-290
Published
Advisory Summary

GHSA-mjcr-rqjg-rhg3 is a CRITICAL implementation trusts the "me" field vulnerability (CWE-290: Authentication Bypass by Spoofing) affecting Datasette indieauth libraries in the PyPI ecosystem. The issue involves implementation trusts the "me" field returned by the authorization server without verifying it. Remediation is available by upgrading affected packages to version 1.1.

GHSA-mjcr-rqjg-rhg3 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-mjcr-rqjg-rhg3
Severity CRITICAL
CVSS v3.1 Base Score N/A
CWE Classification CWE-290: Authentication Bypass by Spoofing
Affected Product Datasette indieauth
Package Ecosystem PyPI
Published Date
Last Updated

How to Fix GHSA-mjcr-rqjg-rhg3

To remediate this vulnerability, upgrade all affected Datasette indieauth dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

datasette-indieauth fixed: 1.1
pip install datasette-indieauth>=1.1
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show datasette-indieauth

How to Check if You Are Affected

To determine whether your Python environment is affected by GHSA-mjcr-rqjg-rhg3, inspect your installed packages using pip:

pip show datasette-indieauth

Analyze the terminal output to locate any version of Datasette indieauth in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.1), your application is affected.

Note: The pip show datasette-indieauth command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-290: Authentication Bypass by Spoofing, where this attack-focused weakness is caused by incorrectly implemented authentication schemes that are subject to spoofing attacks. In Datasette indieauth, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact A malicious user can sign in as a user with any IndieAuth identifier. This is because the implementation does not verify that the final `"me"` URL value returned by the authorization server belongs to the same domain as the initial value entered by the user. ### Patches Version 1.1 fixes this issue. ### Workarounds There is no workaround. Upgrade to 1.1 immediately. ### References - [Security Considerations: Differing User Profile URLs](https://indieauth.spec.indieweb.org/#differing-user-profile-urls-li-1) in the IndieAuth specification. ### For more information If you have any questions or comments about this advisory: * Open an issue in [simonw/datasette-indieauth](https://github.com/simonw/datasette-indieauth/issues)

GHSA-mjcr-rqjg-rhg3 Affected Datasette indieauth Versions

1 component(s)
Fixed Versions:
1.1
Product / Package Ecosystem Affected Versions Fixed Version
datasette-indieauth
PyPI
≥ 1.0
< 1.1
All 1 versions
1.0
1.1

References

Frequently Asked Questions

What is GHSA-mjcr-rqjg-rhg3?
GHSA-mjcr-rqjg-rhg3 is a security vulnerability in Datasette indieauth involving Implementation trusts the "me" field returned by the authorization server without verifying it under CWE-290: Authentication Bypass by Spoofing.
Which Datasette indieauth versions are affected?
Affected versions include releases prior to 1.1 across affected packages: datasette-indieauth.
What version fixes GHSA-mjcr-rqjg-rhg3?
Upgrading to 1.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is datasette-indieauth affected?
Yes, datasette-indieauth is affected in releases prior to 1.1. Upgrade your dependency to 1.1 or later.
What CWE is associated with GHSA-mjcr-rqjg-rhg3?
GHSA-mjcr-rqjg-rhg3 is classified under CWE-290: Authentication Bypass by Spoofing (This attack-focused weakness is caused by incorrectly implemented authentication schemes that are subject to spoofing attacks.).
How can I check PyPI dependencies for GHSA-mjcr-rqjg-rhg3?
Run the dependency tree command: 'pip show datasette-indieauth'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-mjcr-rqjg-rhg3",
  "modified" : "2022-03-21T20:04:49Z",
  "published" : "2020-11-24T21:21:04Z",
  "aliases" : [ ],
  "summary" : "Implementation trusts the \"me\" field returned by the authorization server without verifying it",
  "details" : "### Impact\n\nA malicious user can sign in as a user with any IndieAuth identifier. This is because the implementation does not verify that the final `\"me\"` URL value returned by the authorization server belongs to the same domain as the initial value entered by the user.\n\n### Patches\n\nVersion 1.1 fixes this issue.\n\n### Workarounds\n\nThere is no workaround. Upgrade to 1.1 immediately.\n\n### References\n\n- [Security Considerations: Differing User Profile URLs](https://indieauth.spec.indieweb.org/#differing-user-profile-urls-li-1) in the IndieAuth specification.\n\n### For more information\n\nIf you have any questions or comments about this advisory:\n\n* Open an issue in [simonw/datasette-indieauth](https://github.com/simonw/datasette-indieauth/issues)",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "datasette-indieauth"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.0"
      }, {
        "fixed" : "1.1"
      } ]
    } ],
    "versions" : [ "1.0" ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/simonw/datasette-indieauth/security/advisories/GHSA-mjcr-rqjg-rhg3"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/simonw/datasette-indieauth/commit/376c8804c6b0811852049229a24336fe5eb6a439"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/simonw/datasette-indieauth"
  }, {
    "type" : "WEB",
    "url" : "https://pypi.org/project/datasette-indieauth"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-290" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-11-24T21:20:38Z",
    "nvd_published_at" : null
  }
}