{"id":12343380,"name":"tmpdir","ecosystem":"rubygems","description":"Extends the Dir class to manage the OS temporary file path.","homepage":"https://github.com/ruby/tmpdir","licenses":"Ruby,BSD-2-Clause","normalized_licenses":["Ruby","BSD-2-Clause"],"repository_url":"https://github.com/ruby/tmpdir","keywords_array":[],"namespace":null,"versions_count":7,"first_release_published_at":"2020-04-07T01:07:19.675Z","latest_release_published_at":"2024-12-17T06:50:05.370Z","latest_release_number":"0.3.1","last_synced_at":"2026-04-04T08:31:17.768Z","created_at":"2025-10-07T06:32:22.390Z","updated_at":"2026-04-04T10:21:37.694Z","registry_url":"https://gem.coop/gems/tmpdir","install_command":"gem install tmpdir -s https://gem.coop","documentation_url":"http://www.rubydoc.info/gems/tmpdir/","metadata":{"funding":null},"repo_metadata":{"id":42977435,"uuid":"239687169","full_name":"ruby/tmpdir","owner":"ruby","description":"Retrieve temporary directory path","archived":false,"fork":false,"pushed_at":"2026-03-23T07:41:05.000Z","size":190,"stargazers_count":14,"open_issues_count":4,"forks_count":11,"subscribers_count":30,"default_branch":"master","last_synced_at":"2026-03-24T04:56:15.794Z","etag":null,"topics":["ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ruby.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-02-11T05:52:49.000Z","updated_at":"2026-03-23T07:41:08.000Z","dependencies_parsed_at":"2023-02-16T05:15:58.550Z","dependency_job_id":"83f85af3-84b4-4508-a5d8-88e86bb8cbac","html_url":"https://github.com/ruby/tmpdir","commit_stats":{"total_commits":113,"total_committers":22,"mean_commits":5.136363636363637,"dds":0.7699115044247787,"last_synced_commit":"7751b12e97561ae1aff1f85b047ebae1b7cdc84a"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/ruby/tmpdir","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Ftmpdir","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Ftmpdir/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Ftmpdir/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Ftmpdir/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ruby","download_url":"https://codeload.github.com/ruby/tmpdir/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Ftmpdir/sbom","scorecard":{"id":788931,"data":{"date":"2025-08-11","repo":{"name":"github.com/ruby/tmpdir","commit":"65a6f86cdabc9f33c03f7f94aff735d325082a0a"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.6,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/8 approved changesets -- score normalized to 0","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":9,"reason":"10 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 9","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"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":"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":"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":5,"reason":"dependency not pinned by hash detected -- score normalized to 5","details":["Warn: third-party GitHubAction not pinned by hash: .github/workflows/test.yml:7: update your workflow using https://app.stepsecurity.io/secureworkflow/ruby/tmpdir/test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/ruby/tmpdir/test.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/ruby/tmpdir/test.yml/master?enable=pin","Info:   1 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   3 out of   5 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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: jobLevel 'contents' permission set to 'write': .github/workflows/push_gem.yml:21","Info: topLevel 'contents' permission set to 'read': .github/workflows/push_gem.yml:9","Warn: no topLevel permission defined: .github/workflows/test.yml:1"],"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":"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":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"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":"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":"License","score":9,"reason":"license file detected","details":["Info: project has a license file: COPYING:0","Warn: project license file does not contain an FSF or OSI license."],"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 27 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"}}]},"last_synced_at":"2025-08-23T06:54:16.923Z","repository_id":42977435,"created_at":"2025-08-23T06:54:16.923Z","updated_at":"2025-08-23T06:54:16.923Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30948178,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-26T02:38:33.265Z","status":"ssl_error","status_checked_at":"2026-03-26T02:36:10.435Z","response_time":114,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":"ruby","name":"The Ruby Programming Language","uuid":"210414","kind":"organization","description":"Repositories related to the Ruby Programming language","email":"info@ruby-lang.org","website":"https://www.ruby-lang.org/","location":"Matsue, Japan","twitter":null,"company":null,"icon_url":"https://avatars.githubusercontent.com/u/210414?v=4","repositories_count":171,"last_synced_at":"2023-04-09T03:40:20.875Z","metadata":{"has_sponsors_listing":false},"html_url":"https://github.com/ruby","funding_links":[],"total_stars":41804,"followers":null,"following":null,"created_at":"2022-11-02T16:17:15.462Z","updated_at":"2023-04-09T03:40:20.938Z","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ruby","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ruby/repositories"},"tags":[{"name":"v0.3.1","sha":"0245079c2489f9806f8556aa74e01540adaa3278","kind":"commit","published_at":"2024-12-17T06:47:40.000Z","download_url":"https://codeload.github.com/ruby/tmpdir/tar.gz/v0.3.1","html_url":"https://github.com/ruby/tmpdir/releases/tag/v0.3.1","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/ruby/tmpdir@v0.3.1","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Ftmpdir/tags/v0.3.1","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Ftmpdir/tags/v0.3.1/manifests"},{"name":"v0.3.0","sha":"ef9ca591cfc0fffebfd354ea72a5c0f7347cdffb","kind":"commit","published_at":"2024-11-06T08:04:36.000Z","download_url":"https://codeload.github.com/ruby/tmpdir/tar.gz/v0.3.0","html_url":"https://github.com/ruby/tmpdir/releases/tag/v0.3.0","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/ruby/tmpdir@v0.3.0","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Ftmpdir/tags/v0.3.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Ftmpdir/tags/v0.3.0/manifests"},{"name":"v0.2.0","sha":"8bbd87c8ac0489cccbe0eb889f64f9fe9cd55701","kind":"tag","published_at":"2023-11-07T02:06:33.000Z","download_url":"https://codeload.github.com/ruby/tmpdir/tar.gz/v0.2.0","html_url":"https://github.com/ruby/tmpdir/releases/tag/v0.2.0","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/ruby/tmpdir@v0.2.0","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Ftmpdir/tags/v0.2.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Ftmpdir/tags/v0.2.0/manifests"},{"name":"v0.1.3","sha":"ee99c758fd88996d08268111b51e6b47784f4683","kind":"tag","published_at":"2022-12-05T08:14:56.000Z","download_url":"https://codeload.github.com/ruby/tmpdir/tar.gz/v0.1.3","html_url":"https://github.com/ruby/tmpdir/releases/tag/v0.1.3","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/ruby/tmpdir@v0.1.3","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Ftmpdir/tags/v0.1.3","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Ftmpdir/tags/v0.1.3/manifests"},{"name":"v0.1.2","sha":"c79bc7adf66a39617d0d6bae21085adc77c02b0e","kind":"commit","published_at":"2021-04-05T12:06:23.000Z","download_url":"https://codeload.github.com/ruby/tmpdir/tar.gz/v0.1.2","html_url":"https://github.com/ruby/tmpdir/releases/tag/v0.1.2","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/ruby/tmpdir@v0.1.2","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Ftmpdir/tags/v0.1.2","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Ftmpdir/tags/v0.1.2/manifests"},{"name":"v0.1.1","sha":"363e1ece3508202520f7890bc80fd2d969983889","kind":"tag","published_at":"2020-12-22T12:20:11.000Z","download_url":"https://codeload.github.com/ruby/tmpdir/tar.gz/v0.1.1","html_url":"https://github.com/ruby/tmpdir/releases/tag/v0.1.1","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/ruby/tmpdir@v0.1.1","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Ftmpdir/tags/v0.1.1","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Ftmpdir/tags/v0.1.1/manifests"},{"name":"v0.1.0","sha":"5e03d4cbccdffc03ab8f31cfc1139d3a8516456d","kind":"commit","published_at":"2020-03-26T10:28:39.000Z","download_url":"https://codeload.github.com/ruby/tmpdir/tar.gz/v0.1.0","html_url":"https://github.com/ruby/tmpdir/releases/tag/v0.1.0","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/ruby/tmpdir@v0.1.0","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Ftmpdir/tags/v0.1.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Ftmpdir/tags/v0.1.0/manifests"}]},"repo_metadata_updated_at":"2026-04-04T10:21:37.668Z","dependent_packages_count":0,"downloads":723952,"downloads_period":"total","dependent_repos_count":0,"rankings":{"downloads":3.8936885697912054,"dependent_repos_count":0.0,"dependent_packages_count":0.0,"stargazers_count":null,"forks_count":null,"docker_downloads_count":0.04054886949751841,"average":0.9835593598221809},"purl":"pkg:gem/tmpdir?repository_url=https://gem.coop","advisories":[{"uuid":"MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLTQ2ZjItM3Y2My0zeHJw","url":"https://github.com/advisories/GHSA-46f2-3v63-3xrp","title":"Tempfile on Windows path traversal vulnerability","description":"There is an unintentional directory creation vulnerability in `tmpdir` library bundled with Ruby on Windows. And there is also an unintentional file creation vulnerability in tempfile library bundled with Ruby on Windows, because it uses tmpdir internally. \n","origin":"UNSPECIFIED","severity":"HIGH","published_at":"2021-05-06T15:01:36.000Z","withdrawn_at":null,"classification":"GENERAL","cvss_score":0.0,"cvss_vector":null,"references":["https://nvd.nist.gov/vuln/detail/CVE-2021-28966","https://github.com/ruby/tmpdir/pull/8","https://github.com/ruby/tmpdir/commit/93798c01cb7c10476e50a4d80130a329ba47f348","https://hackerone.com/reports/1131465","https://github.com/rubysec/ruby-advisory-db/blob/master/gems/tmpdir/CVE-2021-28966.yml","https://rubygems.org/gems/tmpdir","https://www.ruby-lang.org/en/news/2021/04/05/tempfile-path-traversal-on-windows-cve-2021-28966/","https://security.netapp.com/advisory/ntap-20210902-0004/","https://github.com/advisories/GHSA-46f2-3v63-3xrp"],"source_kind":"github","identifiers":["GHSA-46f2-3v63-3xrp","CVE-2021-28966"],"repository_url":"https://github.com/ruby/tmpdir","blast_radius":0.0,"created_at":"2022-12-21T16:13:05.050Z","updated_at":"2025-10-29T01:18:43.243Z","epss_percentage":0.00347,"epss_percentile":0.56644,"packages":[{"ecosystem":"rubygems","package_name":"tmpdir","versions":[{"first_patched_version":"0.1.2","vulnerable_version_range":"\u003c 0.1.2"}],"purl":"pkg:gem/tmpdir","statistics":{"dependent_packages_count":6,"dependent_repos_count":16,"downloads":570328,"downloads_period":"total"},"affected_versions":["0.1.0","0.1.1"],"unaffected_versions":["0.1.2","0.1.3","0.2.0","0.3.0","0.3.1"]}]}],"docker_usage_url":"https://docker.ecosyste.ms/usage/rubygems/tmpdir","docker_dependents_count":1579,"docker_downloads_count":3051639702,"usage_url":"https://repos.ecosyste.ms/usage/rubygems/tmpdir","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/rubygems/tmpdir/dependencies","status":null,"funding_links":[],"critical":null,"issue_metadata":{"last_synced_at":"2026-03-26T03:02:55.372Z","issues_count":6,"pull_requests_count":71,"avg_time_to_close_issue":5836464.333333333,"avg_time_to_close_pull_request":7565594.363636363,"issues_closed_count":3,"pull_requests_closed_count":66,"pull_request_authors_count":10,"issue_authors_count":6,"avg_comments_per_issue":1.6666666666666667,"avg_comments_per_pull_request":0.09859154929577464,"merged_pull_requests_count":59,"bot_issues_count":0,"bot_pull_requests_count":25,"past_year_issues_count":1,"past_year_pull_requests_count":16,"past_year_avg_time_to_close_issue":9751032.0,"past_year_avg_time_to_close_pull_request":40925.0,"past_year_issues_closed_count":1,"past_year_pull_requests_closed_count":12,"past_year_pull_request_authors_count":4,"past_year_issue_authors_count":1,"past_year_avg_comments_per_issue":6.0,"past_year_avg_comments_per_pull_request":0.0,"past_year_bot_issues_count":0,"past_year_bot_pull_requests_count":12,"past_year_merged_pull_requests_count":12,"issues_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Ftmpdir/issues","maintainers":[{"login":"nobu","count":26,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/nobu"},{"login":"hsbt","count":9,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/hsbt"},{"login":"k0kubun","count":2,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/k0kubun"},{"login":"znz","count":1,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/znz"}],"active_maintainers":[{"login":"hsbt","count":2,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/hsbt"},{"login":"k0kubun","count":1,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/k0kubun"}]},"versions_url":"https://packages.ecosyste.ms/api/v1/registries/gem.coop/packages/tmpdir/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/gem.coop/packages/tmpdir/version_numbers","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/gem.coop/packages/tmpdir/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/gem.coop/packages/tmpdir/related_packages","codemeta_url":"https://packages.ecosyste.ms/api/v1/registries/gem.coop/packages/tmpdir/codemeta","maintainers":[{"uuid":"27848","login":"naruse","name":null,"email":null,"url":null,"packages_count":80,"html_url":"https://gem.coop/profiles/naruse","role":null,"created_at":"2025-10-09T23:42:40.504Z","updated_at":"2025-10-09T23:42:40.504Z","packages_url":"https://packages.ecosyste.ms/api/v1/registries/gem.coop/maintainers/naruse/packages"},{"uuid":"36956","login":"hsbt","name":null,"email":null,"url":null,"packages_count":179,"html_url":"https://gem.coop/profiles/hsbt","role":null,"created_at":"2025-10-09T23:42:41.733Z","updated_at":"2025-10-09T23:42:41.733Z","packages_url":"https://packages.ecosyste.ms/api/v1/registries/gem.coop/maintainers/hsbt/packages"}]}