{"id":3493660,"name":"github.com/go-macaron/csrf","ecosystem":"go","description":"Package csrf is a middleware that generates and validates CSRF tokens for Macaron.","homepage":"https://github.com/go-macaron/csrf","licenses":"Apache-2.0","normalized_licenses":["Apache-2.0"],"repository_url":"https://github.com/go-macaron/csrf","keywords_array":[],"namespace":"github.com/go-macaron","versions_count":4,"first_release_published_at":"2015-02-04T17:09:14.000Z","latest_release_published_at":"2020-03-29T07:34:18.000Z","latest_release_number":"v0.0.0-20200329073418-5d38f39de352","last_synced_at":"2026-09-28T09:32:15.785Z","created_at":"2022-04-10T19:18:33.269Z","updated_at":"2026-09-28T09:32:15.785Z","registry_url":"https://pkg.go.dev/github.com/go-macaron/csrf","install_command":"go get github.com/go-macaron/csrf","documentation_url":"https://pkg.go.dev/github.com/go-macaron/csrf#section-documentation","metadata":null,"repo_metadata":{"id":19189852,"uuid":"22422896","full_name":"go-macaron/csrf","owner":"go-macaron","description":"Package csrf is a middleware that generates and validates CSRF tokens for Macaron.","archived":false,"fork":false,"pushed_at":"2023-07-14T09:29:19.000Z","size":54,"stargazers_count":7,"open_issues_count":0,"forks_count":11,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-09-12T20:41:14.574Z","etag":null,"topics":["csrf","go","lsif-enabled","macaron","middleware"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/go-macaron.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-07-30T10:35:59.000Z","updated_at":"2025-02-11T21:31:16.000Z","dependencies_parsed_at":"2024-06-18T16:50:43.013Z","dependency_job_id":"07a15c68-253c-49dc-b713-891ea45fb025","html_url":"https://github.com/go-macaron/csrf","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/go-macaron/csrf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-macaron%2Fcsrf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-macaron%2Fcsrf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-macaron%2Fcsrf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-macaron%2Fcsrf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/go-macaron","download_url":"https://codeload.github.com/go-macaron/csrf/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-macaron%2Fcsrf/sbom","scorecard":{"id":432138,"data":{"date":"2025-08-11","repo":{"name":"github.com/go-macaron/csrf","commit":"5d38f39de352972063d1ef026fc477283841bb9b"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.5,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/go.yml:1","Warn: no topLevel permission defined: .github/workflows/lsif.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":2,"reason":"Found 6/29 approved changesets -- score normalized to 2","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/go-macaron/csrf/go.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go.yml:31: update your workflow using https://app.stepsecurity.io/secureworkflow/go-macaron/csrf/go.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/go.yml:35: update your workflow using https://app.stepsecurity.io/secureworkflow/go-macaron/csrf/go.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go.yml:40: update your workflow using https://app.stepsecurity.io/secureworkflow/go-macaron/csrf/go.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/go-macaron/csrf/go.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/go.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/go-macaron/csrf/go.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/lsif.yml:7: update your workflow using https://app.stepsecurity.io/secureworkflow/go-macaron/csrf/lsif.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/lsif.yml:9: update your workflow using https://app.stepsecurity.io/secureworkflow/go-macaron/csrf/lsif.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/lsif.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/go-macaron/csrf/lsif.yml/master?enable=pin","Info:   0 out of   5 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   4 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 10 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":9,"reason":"1 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2020-0039 / GHSA-733f-44f3-3frw"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-19T03:37:19.851Z","repository_id":19189852,"created_at":"2025-08-19T03:37:19.851Z","updated_at":"2025-08-19T03:37:19.851Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":341189360,"owners_count":37570614,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-08-22T15:14:58.755Z","status":"online","status_checked_at":"2026-09-21T02:00:06.232Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"},"owner_record":{"login":"go-macaron","name":"Macaron","uuid":"11359481","kind":"organization","description":"A high productive and modular web framework in Go.","email":null,"website":"https://go-macaron.com","location":"Planet Earth","twitter":null,"company":null,"icon_url":"https://avatars.githubusercontent.com/u/11359481?v=4","repositories_count":24,"last_synced_at":"2024-03-16T08:51:53.085Z","metadata":{"has_sponsors_listing":false},"html_url":"https://github.com/go-macaron","funding_links":[],"total_stars":3715,"followers":null,"following":null,"created_at":"2022-11-08T21:38:43.082Z","updated_at":"2024-03-16T08:51:59.009Z","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/go-macaron","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/go-macaron/repositories"},"tags":[]},"repo_metadata_updated_at":"2026-09-23T20:38:24.536Z","dependent_packages_count":60,"downloads":null,"downloads_period":null,"dependent_repos_count":117,"rankings":{"downloads":null,"dependent_repos_count":0.5623977150457965,"dependent_packages_count":0.6953008397280306,"stargazers_count":10.622383701939263,"forks_count":6.147897136875226,"docker_downloads_count":0.2533703174965164,"average":3.6562699422169667},"purl":"pkg:golang/github.com/go-macaron/csrf","advisories":[{"uuid":"GSA_kwCzR0hTQS1oaHhnLXB4NWgtamMzMs4AAwqY","url":"https://github.com/advisories/GHSA-hhxg-px5h-jc32","title":"Macaron csrf missing encryption and has sensitive cookies in HTTP session without secure attribute","description":"A vulnerability was found in Macaron csrf and classified as problematic. Affected by this issue is some unknown functionality of the file `csrf.go`. The manipulation of the argument Generate leads to sensitive cookie without secure attribute. The attack may be launched remotely. The name of the patch is dadd1711a617000b70e5e408a76531b73187031c. It is recommended to apply a patch to fix this issue. VDB-217058 is the identifier assigned to this vulnerability.","origin":"UNSPECIFIED","severity":"HIGH","published_at":"2022-12-30T12:30:25.000Z","withdrawn_at":null,"classification":"GENERAL","cvss_score":7.5,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","references":["https://nvd.nist.gov/vuln/detail/CVE-2018-25060","https://github.com/go-macaron/csrf/pull/7","https://github.com/go-macaron/csrf/commit/dadd1711a617000b70e5e408a76531b73187031c","https://vuldb.com/?ctiid.217058","https://vuldb.com/?id.217058","https://pkg.go.dev/vuln/GO-2022-1213","https://github.com/advisories/GHSA-hhxg-px5h-jc32"],"source_kind":"github","identifiers":["GHSA-hhxg-px5h-jc32","CVE-2018-25060"],"repository_url":"https://github.com/go-macaron/csrf","blast_radius":0.0,"created_at":"2023-01-09T22:03:23.378Z","updated_at":"2026-09-25T12:11:45.144Z","epss_percentage":0.00519,"epss_percentile":0.41599,"api_url":"https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1oaHhnLXB4NWgtamMzMs4AAwqY","html_url":"https://advisories.ecosyste.ms/advisories/GSA_kwCzR0hTQS1oaHhnLXB4NWgtamMzMs4AAwqY","packages":[{"ecosystem":"go","package_name":"github.com/go-macaron/csrf","versions":[{"first_patched_version":"0.0.0-20180426211050-dadd1711a617","vulnerable_version_range":"\u003c 0.0.0-20180426211050-dadd1711a617"}],"purl":"pkg:go/github.com%2Fgo-macaron%2Fcsrf"}],"related_packages_url":"https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1oaHhnLXB4NWgtamMzMs4AAwqY/related_packages","related_advisories":[]}],"docker_usage_url":"https://docker.ecosyste.ms/usage/go/github.com/go-macaron/csrf","docker_dependents_count":14,"docker_downloads_count":92889333,"usage_url":"https://repos.ecosyste.ms/usage/go/github.com/go-macaron/csrf","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/go/github.com/go-macaron/csrf/dependencies","status":null,"funding_links":[],"critical":null,"issue_metadata":{"last_synced_at":"2026-09-23T20:38:22.403Z","issues_count":3,"pull_requests_count":14,"avg_time_to_close_issue":1030100.3333333334,"avg_time_to_close_pull_request":18417107.35714286,"issues_closed_count":3,"pull_requests_closed_count":14,"pull_request_authors_count":10,"issue_authors_count":3,"avg_comments_per_issue":1.0,"avg_comments_per_pull_request":1.0,"merged_pull_requests_count":10,"bot_issues_count":0,"bot_pull_requests_count":0,"past_year_issues_count":0,"past_year_pull_requests_count":0,"past_year_avg_time_to_close_issue":null,"past_year_avg_time_to_close_pull_request":null,"past_year_issues_closed_count":0,"past_year_pull_requests_closed_count":0,"past_year_pull_request_authors_count":0,"past_year_issue_authors_count":0,"past_year_avg_comments_per_issue":null,"past_year_avg_comments_per_pull_request":null,"past_year_bot_issues_count":0,"past_year_bot_pull_requests_count":0,"past_year_merged_pull_requests_count":0,"issues_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-macaron%2Fcsrf/issues","maintainers":[],"active_maintainers":[]},"versions_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fgo-macaron%2Fcsrf/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fgo-macaron%2Fcsrf/version_numbers","latest_version_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fgo-macaron%2Fcsrf/latest_version","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fgo-macaron%2Fcsrf/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fgo-macaron%2Fcsrf/related_packages","codemeta_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fgo-macaron%2Fcsrf/codemeta","maintainers":[]}