2026-08-30 0:18CVE-2026-77970EEF
PUBLISHED5.2ApplicationCWE-312

Sensitive fields nested in embedded values are not redacted in AshPaperTrail versions

Cleartext Storage of Sensitive Information vulnerability in ash-project ash_paper_trail allows an attacker with read access to the generated version resource to recover sensitive values nested inside embedded resources, unions, or lists.

sensitive_attributes :redact and :ignore only act on the tracked resource's top-level attributes. maybe_redact_changes/3 and the stored-action-input path in AshPaperTrail.Resource.Changes.CreateNewVersion derive the sensitive set from the resource's own attributes and never descend into embedded, union, or list values, so a non-sensitive attribute or action argument that holds an embed with a sensitive? field (for example an accepted credentials embed carrying a token) is written to the version table in cleartext.

This issue affects ash_paper_trail: from 0.3.0 before 0.7.0.

Problem type

Affected products

ash-project

ash_paper_trail

< 0.7.0 - AFFECTED

ash_paper_trail

< 0cd4acfe7f48397673d8594fb5e2cd0f1bda6e40 - AFFECTED

References

JSON source

https://cveawg.mitre.org/api/cve/CVE-2026-77970
Click to expand
{
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "cveMetadata": {
    "cveId": "CVE-2026-77970",
    "assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
    "assignerShortName": "EEF",
    "dateUpdated": "2026-08-30T00:18:22.853Z",
    "dateReserved": "2026-08-24T15:45:02.123Z",
    "datePublished": "2026-08-30T00:18:22.853Z",
    "state": "PUBLISHED"
  },
  "containers": {
    "cna": {
      "providerMetadata": {
        "orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
        "shortName": "EEF",
        "dateUpdated": "2026-08-30T00:18:22.853Z"
      },
      "title": "Sensitive fields nested in embedded values are not redacted in AshPaperTrail versions",
      "descriptions": [
        {
          "lang": "en",
          "value": "Cleartext Storage of Sensitive Information vulnerability in ash-project ash_paper_trail allows an attacker with read access to the generated version resource to recover sensitive values nested inside embedded resources, unions, or lists.\n\nsensitive_attributes :redact and :ignore only act on the tracked resource's top-level attributes. maybe_redact_changes/3 and the stored-action-input path in AshPaperTrail.Resource.Changes.CreateNewVersion derive the sensitive set from the resource's own attributes and never descend into embedded, union, or list values, so a non-sensitive attribute or action argument that holds an embed with a sensitive? field (for example an accepted credentials embed carrying a token) is written to the version table in cleartext.\n\nThis issue affects ash_paper_trail: from 0.3.0 before 0.7.0.",
          "supportingMedia": [
            {
              "type": "text/html",
              "base64": false,
              "value": "<p>Cleartext Storage of Sensitive Information vulnerability in ash-project ash_paper_trail allows an attacker with read access to the generated version resource to recover sensitive values nested inside embedded resources, unions, or lists.</p>\n<p><code>sensitive_attributes :redact</code> and <code>:ignore</code> only act on the tracked resource's top-level attributes. <code>maybe_redact_changes/3</code> and the stored-action-input path in <code>AshPaperTrail.Resource.Changes.CreateNewVersion</code> derive the sensitive set from the resource's own attributes and never descend into embedded, union, or list values, so a non-sensitive attribute or action argument that holds an embed with a <code>sensitive?</code> field (for example an accepted credentials embed carrying a token) is written to the version table in cleartext.</p>\n<p>This issue affects ash_paper_trail: from 0.3.0 before 0.7.0.</p>"
            },
            {
              "type": "text/markdown",
              "base64": false,
              "value": "Cleartext Storage of Sensitive Information vulnerability in ash-project ash_paper_trail allows an attacker with read access to the generated version resource to recover sensitive values nested inside embedded resources, unions, or lists.\n\n`sensitive_attributes :redact` and `:ignore` only act on the tracked resource's top-level attributes. `maybe_redact_changes/3` and the stored-action-input path in `AshPaperTrail.Resource.Changes.CreateNewVersion` derive the sensitive set from the resource's own attributes and never descend into embedded, union, or list values, so a non-sensitive attribute or action argument that holds an embed with a `sensitive?` field (for example an accepted credentials embed carrying a token) is written to the version table in cleartext.\n\nThis issue affects ash_paper_trail: from 0.3.0 before 0.7.0."
            }
          ]
        }
      ],
      "affected": [
        {
          "vendor": "ash-project",
          "product": "ash_paper_trail",
          "collectionURL": "https://repo.hex.pm",
          "packageName": "ash_paper_trail",
          "cpes": [
            "cpe:2.3:a:ash-project:ash_paper_trail:*:*:*:*:*:*:*:*"
          ],
          "modules": [
            "'Elixir.AshPaperTrail.Resource.Changes.CreateNewVersion'"
          ],
          "programFiles": [
            "lib/resource/changes/create_new_version.ex"
          ],
          "programRoutines": [
            {
              "name": "'Elixir.AshPaperTrail.Resource.Changes.CreateNewVersion':maybe_redact_changes/3"
            }
          ],
          "repo": "https://github.com/ash-project/ash_paper_trail",
          "defaultStatus": "unaffected",
          "versions": [
            {
              "version": "0.3.0",
              "status": "affected",
              "versionType": "semver",
              "lessThan": "0.7.0"
            }
          ]
        },
        {
          "vendor": "ash-project",
          "product": "ash_paper_trail",
          "collectionURL": "https://github.com",
          "packageName": "ash-project/ash_paper_trail",
          "cpes": [
            "cpe:2.3:a:ash-project:ash_paper_trail:*:*:*:*:*:*:*:*"
          ],
          "modules": [
            "'Elixir.AshPaperTrail.Resource.Changes.CreateNewVersion'"
          ],
          "programFiles": [
            "lib/resource/changes/create_new_version.ex"
          ],
          "programRoutines": [
            {
              "name": "'Elixir.AshPaperTrail.Resource.Changes.CreateNewVersion':maybe_redact_changes/3"
            }
          ],
          "repo": "https://github.com/ash-project/ash_paper_trail",
          "defaultStatus": "unaffected",
          "versions": [
            {
              "version": "ffe5e03b14d26b73bff17f3eca811591788aba9c",
              "status": "affected",
              "versionType": "git",
              "lessThan": "0cd4acfe7f48397673d8594fb5e2cd0f1bda6e40"
            }
          ]
        }
      ],
      "problemTypes": [
        {
          "descriptions": [
            {
              "lang": "en",
              "description": "CWE-312 Cleartext Storage of Sensitive Information",
              "cweId": "CWE-312",
              "type": "CWE"
            }
          ]
        }
      ],
      "references": [
        {
          "url": "https://github.com/ash-project/ash_paper_trail/security/advisories/GHSA-v645-6jm6-cgpj",
          "tags": [
            "vendor-advisory",
            "related"
          ]
        },
        {
          "url": "https://cna.erlef.org/cves/CVE-2026-77970.html",
          "tags": [
            "related"
          ]
        },
        {
          "url": "https://osv.dev/vulnerability/EEF-CVE-2026-77970",
          "tags": [
            "related"
          ]
        },
        {
          "url": "https://github.com/ash-project/ash_paper_trail/commit/0cd4acfe7f48397673d8594fb5e2cd0f1bda6e40",
          "tags": [
            "patch"
          ]
        }
      ],
      "impacts": [
        {
          "capecId": "CAPEC-37",
          "descriptions": [
            {
              "lang": "en",
              "value": "CAPEC-37 Retrieve Embedded Sensitive Data"
            }
          ]
        }
      ],
      "metrics": [
        {
          "format": "CVSS",
          "scenarios": [
            {
              "lang": "en",
              "value": "GENERAL"
            }
          ]
        }
      ],
      "configurations": [
        {
          "lang": "en",
          "value": "The resource must version an attribute or accept an action input whose type is an embedded resource, union, or list containing a sensitive? field, with sensitive_attributes set to :redact or :ignore. Exposure requires read access to the generated version resource.",
          "supportingMedia": [
            {
              "type": "text/html",
              "base64": false,
              "value": "<p>The resource must version an attribute or accept an action input whose type is an embedded resource, union, or list containing a <code>sensitive?</code> field, with <code>sensitive_attributes</code> set to <code>:redact</code> or <code>:ignore</code>. Exposure requires read access to the generated version resource.</p>"
            },
            {
              "type": "text/markdown",
              "base64": false,
              "value": "The resource must version an attribute or accept an action input whose type is an embedded resource, union, or list containing a `sensitive?` field, with `sensitive_attributes` set to `:redact` or `:ignore`. Exposure requires read access to the generated version resource."
            }
          ]
        }
      ],
      "credits": [
        {
          "lang": "en",
          "value": "Peter Ullrich",
          "type": "finder"
        },
        {
          "lang": "en",
          "value": "Peter Ullrich",
          "type": "reporter"
        },
        {
          "lang": "en",
          "value": "Zach Daniel / Ash Project",
          "type": "remediation developer"
        },
        {
          "lang": "en",
          "value": "Jonatan Männchen / EEF",
          "type": "coordinator"
        }
      ]
    }
  }
}